[Closed] moving multiple groups/objects
I am trying to move multiple objects(which includes groups) to specific distances.
I need to know how to determine whether its a group or not and how to move them.
I tried various commands like isGroupHead and isGroupMember but could not get this to work.
Can someone please help.
Thanks
example:
go through each object in the selection . . .
{
if its a groupHead {
move this entire group to a specific distance
}
if its a groupmember(ie objects inside the group) {
dont do anything
}
else (if its an individual object) {
move this object to a specific distance
}
}
Hi.
Try this:
fn moveSelection translation = (
for obj in selection do (
if (isGroupHead obj) or not (isGroupMember obj) do (
move obj translation
)
)
)
Hope that helps.
Thank you. worked.
I was trying to arrange group nodes and individual objects in diffrenet categories and was having problems. But i don’t need to do that now.
Can someone also help me to find bounding box values for a group node.
Thanks