Guest User

Untitled

a guest
Apr 19th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 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. if ::AlvaresDotnetCore == undefined then ::AlvaresDotnetCore = (dotNetClass "Autodesk.Max.GlobalInterface").Instance.coreinterface7
  9. on execute do
  10. (
  11. if AlvaresDotnetCore.ASnapStatus == 0 then max angle snap toggle
  12. AlvaresDotnetCore.SnapAngle_ = 5
  13. displayTempPrompt ("Snap Angle: " + (AlvaresDotnetCore.SnapAngle_ as string) + "°") 1500
  14. )
  15.  
  16. on isChecked return
  17. (
  18. AlvaresDotnetCore.SnapAngle_ == 5
  19. )
  20. )
Advertisement
Add Comment
Please, Sign In to add comment