Guest User

Untitled

a guest
Apr 19th, 2020
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. macroScript ASLRotateStep5Deg
  2. category:"Alvares Script Library"
  3. tooltip:"Set Step Rotate 5 deg"
  4. buttontext: "d5"
  5. Icon:#("deg5",1)
  6.  
  7. (
  8. local core = (dotNetClass "Autodesk.Max.GlobalInterface").Instance.coreinterface7
  9.  
  10. if ::AlvaresSnapDegree == undefined then ::AlvaresSnapDegree = core.SnapAngle_
  11.  
  12. on execute do
  13. (
  14. if core.ASnapStatus == 0 then max angle snap toggle
  15. core.SnapAngle_ = AlvaresSnapDegree = 5
  16. displayTempPrompt ("Snap Angle: " + (AlvaresSnapDegree as string) + "°") 1500
  17. )
  18.  
  19. on isChecked return
  20. (
  21. AlvaresSnapDegree == 5
  22. )
  23. )
Advertisement
Add Comment
Please, Sign In to add comment