Notifications
Clear all

[Closed] HOW TO $POS FOR A GROUP IN script

Hi
I spend a lot of time with max and now I have one problem.
I have to render tons of model in max. All of them are set as group . In all cases I need to move one group to the XYZ -0,0,0
I’ll try to use $.pose = [0,0,0} but unfortunately the group is set properly but all object inside the group are also set to XYZ-0,0,0 ,what has no sense
If You could help it will makes my life easier
Regards

1 Reply
 MZ1

$ means selection, You should use another method to find group heads like this:

for o in objects where (isgrouphead o or isopengrouphead o) and o.parent == undefined do o.pos = [0,0,0]