Hey all
![:) :)](https://polycount.com/plugins/emojiextender/emoji/twitter/smile.png)
So currently I have this;
max select all
max group group
(
ResetPivot $
CenterPivot $
for i in selection do
(
i.pivot = [0, 0, 0]
)
)
max tti
max group ungroup
I want to select all, group, move the pivot to 0,0,0, then be able to move the group to a new area, then ungroup the objects.
Question is, how do i pause the script when the move transform type in box comes up, so i can enter a new values, then continue the script once i close the box????
Replies
Alternatively I guess you could come up with your own UI that mimics the TTI but triggers the rest of the script when values are changed or a button is pressed.
Unfortunately i have tried that already before, and the issue why i didn't continue to use that is because the querybox locks out max, so you have to press yes or no before you can edit the TTI
edit:
the script should probably record the original pivots of each object so it can restore them if necessary. For now the script above just does a resetPivot for each object after ungrouping.
LotekK seems to be onto something too. I would probably roll with that
So i just went with this.....
$Group001.pivot = [0,0,0] only moves the group pos, not the objects inside, so thats what i wanted.
I may implement yours though LoTekK