Home Technical Talk
The BRAWL² Tournament Challenge has been announced!

It starts May 12, and ends Sept 12. Let's see what you got!

https://polycount.com/discussion/237047/the-brawl²-tournament

Use Pivot Point Center

polycounter lvl 17
Offline / Send Message
CompanionCube polycounter lvl 17
Something is driving me crazy, and i feel kinda stupid asking, but i’ve looked the customize UI so many times for this top try and find an answer but i can’t.
it would really speed up my work if i could map the different options in ‘Use Pivot Point Center’ to a hotkey or add it into my quad menu.
please help?
thanks

usepivotpointcenter.jpg

Replies

  • Mark Dygert
    Nope I don't think you can set shortcuts for it by default. But you can do it through maxscript.
    1. macroScript PPCent
    2. Category:"VigTools"
    3. toolTip:"Pivot Point Center"
    4. buttontext:"PPCent"
    5. (
    6. toolMode.pivotCenter()
    7. )
    Copy and paste this script into a new maxscript, run it once Ctrl-E and then under Customize > Customize UI > Catagory VigTools you'll have PPCent you can bind this to a key or quadmenu.

    If you want the other options just replace "toolMode.pivotCenter()" with one of the following and change the header info and run the script. Feel free to change the header to whatever you want, I use vigtools because well its easy for me to find.
    toolMode.transformCenter()
    Sets Coordinate System Center to Transform Coordinate System.

    toolMode.selectionCenter()
    Sets Coordinate System Center to Selection Center.
    toolMode.pivotCenter()
    Sets Coordinate System Center to Pivot Point Center.
    If you want a single key to toggle through each of them that will take a tiny bit more work... but is easy enough to do.
  • CompanionCube
    Offline / Send Message
    CompanionCube polycounter lvl 17
    thanks dude, i think it would be useful to alot of people, so annoying to have to go to the top of the screen to access the "Use Pivot Point Center" when i can access the "Reference Coordinate system" through the quad menu.
  • SyncViewS
    Offline / Send Message
    SyncViewS polycounter lvl 13
    Here they are. Evaluate once and find them under category "Pivot Tools".
    1. macroScript UsePivotPointCenter
    2. category:"Pivot Tools"
    3. buttonText:"Use Pivot Point Center"
    4. toolTip:"Use Pivot Point Center"
    5. (
    6. on execute do
    7. setCoordCenter #Local
    8. )
    9.  
    10. macroScript UseSelectionCenter
    11. category:"Pivot Tools"
    12. buttonText:"Use Selection Center"
    13. toolTip:"Use Selection Center"
    14. (
    15. on execute do
    16. setCoordCenter #Selection
    17. )
    18.  
    19. macroScript UseTransformCoordinateCenter
    20. category:"Pivot Tools"
    21. buttonText:"Use Transform Coordinate Center"
    22. toolTip:"Use Transform Coordinate Center"
    23. (
    24. on execute do
    25. setCoordCenter #System
    26. )

    EDIT: oops! Didn't see your edit, Vig :)
  • Mark Dygert
    No prob, I beat you to the punch because I was lazy, heh. I was just about to edit the post and not be lazy when I saw yours.

    Besides I like you're titles better, you can't make me give it back!

    If you haven't given SyncViewS the right to raise your first born son as his own, you should do it now. Dude's a genius when it comes to maxscript. It must carry on!
  • CompanionCube
    Offline / Send Message
    CompanionCube polycounter lvl 17
    omg you guys are amazing! thanks so much, you just saved me so much time, trying out now.
  • CompanionCube
    Offline / Send Message
    CompanionCube polycounter lvl 17
    works perfect, thanks again so much, it should be standard to map these as hotkeys or in the quadmenu.
  • Mark Dygert
    1. macroScript UsePivotPointCenter
    2. category:"Pivot Tools"
    3. buttonText:"Use Pivot Point Center"
    4. toolTip:"Use Pivot Point Center"
    5. (
    6. on execute do
    7. setCoordCenter #Local
    8. )
    9.  
    10. macroScript UseSelectionCenter
    11. category:"Pivot Tools"
    12. buttonText:"Use Selection Center"
    13. toolTip:"Use Selection Center"
    14. (
    15. on execute do
    16. setCoordCenter #Selection
    17. )
    18.  
    19. macroScript UseTransformCoordinateCenter
    20. category:"Pivot Tools"
    21. buttonText:"Use Transform Coordinate Center"
    22. toolTip:"Use Transform Coordinate Center"
    23. (
    24. on execute do
    25. setCoordCenter #System
    26. )
    27.  
    28. macroScript UseToggle
    29. category:"Pivot Tools"
    30. buttonText:"Use Toggle Pivot"
    31. toolTip:"Use Toggle Pivot"
    32. (
    33. fn centloc = (toolMode.transformCenter())
    34. fn centsel = (toolMode.selectionCenter())
    35. fn centpiv = (toolMode.pivotCenter())
    36.  
    37. if (getcoordcenter()) == #Local then
    38. (
    39. centloc()
    40. )
    41. else
    42. (
    43. if (getcoordcenter()) == #selection then
    44. (
    45. centpiv()
    46. )
    47. else
    48. (
    49. if (getcoordcenter()) == #system then
    50. (
    51. centsel()
    52. )
    53. )
    54. )
    55. )
    Here are the scripts SyncViewS wrote combined with a toggle I just wrote, so say you want J to cycle through the modes just bind "Toggle Pivot" to J.
  • SyncViewS
    Offline / Send Message
    SyncViewS polycounter lvl 13
    Hey Vig, smart idea the cycle!
  • CompanionCube
    Offline / Send Message
    CompanionCube polycounter lvl 17
    thats even better, thanks!
  • swytch
    Offline / Send Message
    swytch polycounter lvl 8
    Is there a way to do something similar to Selection Sets? In other words, access any stored Selection Sets via the Quad Menu?
Sign In or Register to comment.