2.5 and 3D snap keyboard shortcut

Hi,

When modelling in Max (well Viz to be exact but there’s little related difference) I switch between 2.5D and 3D snaps alot. I know I can use the “S” keyboard shortcut to tun the snap on or off, but I don’t seem to be able to find a way that I can select 2.5D by pressing “2” or 3D by pressing “3”.

Any help would be much appreciated.

Trev

I made a macro to switch this. All you have to do is set a shortcut for this macro.


macroScript qarq_cycle_snap
	category:"4ArqScripts"
	buttonText:"Quick Snaps Toggle Cycle"
	tooltip:"Quick Snaps Toggle Cycle"
(
	on execute do
	(
		snapList = #(#3D, #2_5D, #2D)
		currentSnap = snapMode.type

		i = findItem snapList currentSnap
		if i == 3 then i = 1 else i = i + 1
		snapMode.type = snapList[i]
	)
)

Best regards,
Daniel Santana
4+Arquitectos, Lda

That works beautifully…

Thanks very much indeed - very kind of you.

Regards,

Trev

Hi

Can someone please help. I have had my computer rebuilt and max 11 installed. I want to add this feature but can’t remember how I got this text in to max and working. Please help.

Thanks in advance

just some ascii code screwup…

macroScript qarq_cycle_snap
    category:"4ArqScripts"
    buttonText:"Quick Snaps Toggle Cycle"
    tooltip:"Quick Snaps Toggle Cycle"
(
    on execute do
    (
        snapList = #(#3D, #2_5D, #2D)
        currentSnap = snapMode.type

        i = findItem snapList currentSnap
        if i == 3 then i = 1 else i = i + 1
        snapMode.type = snapList[i]
    )
)

best regards,
michael

Your a Superstar! Thanks very much!

Always glad to help :wink:

Ah I’ve wanted this for ages. Such an oversight not having this as a native shortcut. Thanks a million!

Install an forget it:

viewport-auto-snap