Announcement

Collapse
No announcement yet.

2.5 and 3D snap keyboard shortcut

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

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

    Code:
    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
    Daniel Santana | Co-Founder / Technical Director
    You can do it! VFX
    Lisbon/Porto - Portugal
    http://www.ycdivfx.com

    Comment


    • #3
      That works beautifully...................

      Thanks very much indeed - very kind of you.

      Regards,



      Trev

      Comment


      • #4
        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

        Comment


        • #5
          just some ascii code screwup...

          Code:
          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
          This signature is only a temporary solution

          Comment


          • #6
            Your a Superstar! Thanks very much!

            Comment


            • #7
              Always glad to help
              This signature is only a temporary solution

              Comment


              • #8
                Ah I've wanted this for ages. Such an oversight not having this as a native shortcut. Thanks a million!
                James Burrell www.objektiv-j.com
                Visit my Patreon patreon.com/JamesBurrell

                Comment


                • #9
                  Install an forget it:

                  viewport-auto-snap

                  Comment

                  Working...
                  X