Solved! Go to Solution.
macroScript UsePivotPointCenter
category:"Pivot Tools"
buttonText:"Use Pivot Point Center"
toolTip:"Use Pivot Point Center"
(
on execute do
setCoordCenter #Local
)
macroScript UseSelectionCenter
category:"Pivot Tools"
buttonText:"Use Selection Center"
toolTip:"Use Selection Center"
(
on execute do
setCoordCenter #Selection
)
macroScript UseTransformCoordinateCenter
category:"Pivot Tools"
buttonText:"Use Transform Coordinate Center"
toolTip:"Use Transform Coordinate Center"
(
on execute do
setCoordCenter #System
)
macroScript UseToggle
category:"Pivot Tools"
buttonText:"Use Toggle Pivot"
toolTip:"Use Toggle Pivot"
(
fn centloc = (toolMode.transformCenter())
fn centsel = (toolMode.selectionCenter())
fn centpiv = (toolMode.pivotCenter())
if (getcoordcenter()) == #Local then
(
centloc()
)
else
(
if (getcoordcenter()) == #selection then
(
centpiv()
)
else
(
if (getcoordcenter()) == #system then
(
centsel()
)
)
)
)
Is there any possibility you or anyone can help to either find out where the hotkey would be for this or how to convert this script for 2021? 😕 this is so frustrating to not be able to find something so simple in theory...
Any chance you could explain or direct me on how to get this working with 3ds max 2021? 😄
Hey @Anonymous I am not sure if I am seeing this right, have typed what I was asking right or if I am not typing what I want to ask correctly. lol What I am trying to do, is to be able to set a hot key that will cycle through the three different types of "use pivot" options we have in 3ds Max. The script at the beginning of the thread here shows exactly what I am trying to do. If there is a shortcut for that can be made for the toggle part of the script, please let me know where that is. If not, how can I make this script work for 3ds Max 2021?
I want to be able to set a shortcut hotkey to toggle/cycle through the 3 different modes of transform coordinates. transforms on an object's or a sub-object's selection based on the selection's: center, the selected objects pivots or a certain object I have picked as a transform pivot.
Could somebody help to edit this code (see post #2) so "Use transform Coord System" option would be excluded from toggling?
Thank you in advance
Can't find what you're looking for? Ask the community or share your knowledge.