Hello, I would like to ask a question. I use the operating axis to move the first model. The position of the first model has changed. How can I make the other models change uniformly?
You need to store the original position of the subtool first, then you can apply the change to the other subtools like this:
[VarDef,shiftX,0]
[VarDef,shiftY,0]
[VarDef,shiftZ,0]
//before moving a subtool, store position:
[IButton,Store_Pos,"Store the position of the selected SubTool",
[VarSet,shiftX,[IGet,Tool:Geometry:X Position]]
[VarSet,shiftY,[IGet,Tool:Geometry:Y Position]]
[VarSet,shiftZ,[IGet,Tool:Geometry:Z Position]]
]
//after moving a subtool, shift the others:
[IButton,Move_All,"Move All other SubTools",
[VarSet,activeSubTool,[SubToolGetActiveIndex]]
[VarSet,shiftX,[IGet,Tool:Geometry:X Position]-shiftX]
[VarSet,shiftY,[IGet,Tool:Geometry:Y Position]-shiftY]
[VarSet,shiftZ,[IGet,Tool:Geometry:Z Position]-shiftZ]
[SubToolSelect,0]
[Loop,[SubToolGetCount],
[If,[Val,n] != #activeSubTool,
[ISet,Tool:Geometry:X Position,[IGet,Tool:Geometry:X Position]+shiftX]
[ISet,Tool:Geometry:Y Position,[IGet,Tool:Geometry:Y Position]+shiftY]
[ISet,Tool:Geometry:Z Position,[IGet,Tool:Geometry:Z Position]+shiftZ]
]
[IPress,Tool:SubTool:Select Down]
,n]
[SubToolSelect,activeSubTool]
]
Note that you need to use the [IPress,Tool:SubTool:Select Down] to move through the subtools in the loop as using [SubToolSelect] for this operation won’t give you the results you expect!
Also, a reminder of the Tool>Deformation>Repeat To Other button which can be used to repeat operations to the other subtools.
-Marcus
Thank you very much for your help. Thank you. Now I have another problem. Mobile application alone can be executed. If the position change and the size of the model change together, the models will overlap. How can I solve it? thank you very much
What I mean is, can the distance between the models remain the same while the model size is uniformly scaled? Thank you
Hello, can you help me again? I have been researching for 3 days without success. The unified movement has been solved. I want to solve the problem of unified zoom and the distance between the models will not change. Hope to get your help, thank you.
Hi,
Yes, I’ve been looking at it too, and will reply as soon as I can.
-Marcus
Thank you for your kind help
I replied to your other post - it will be easier for others to find that way.
Thank you