3dsmax - 3ds max script make group by parents -
hy! not experienced max script, have written/modified exporter can export single meshes, groups using built in obj exporter.
now want select parents(usually theese not 3dobjects) in hierarchy , convert them groups parrents, , have no idea how exatly should it. suggestions maybe script code know?
thanks in advanced
you can parent of object in scene using
myparent = $myobject.parent
and can use following line of parent's children:
myparent.children
so in combination select , group methods, can following:
myparent = $myobject.parent select myparent selectmore myparent.children group (getcurrentselection() array) name:"mygroup"
and have group named mygroup containing parent object , of children. little tinkering can turn method , iterate through every object in scene. hope helps you.
Comments
Post a Comment