PDA

View Full Version : Merging all objects under helper


cridalab
09-04-2009, 12:53 AM
hello,

I want to merge a Dummy Helper type object and all its children into my scene. I tried: mergeMAXFile file #(helper_name)
which imported the Helper object, but not its children.

Is there a way to import the children too?

thanks,
Richard

SoLiTuDe
09-04-2009, 12:59 AM
Not directly that i know of... the easiest thing to do is write a function that will merge everything, then delete the stuff that you don't want. Only other way I know of is to write that data out in the first place on file save (from the file with the helper).

cridalab
09-04-2009, 01:10 AM
Not directly that i know of... the easiest thing to do is write a function that will merge everything, then delete the stuff that you don't want.

oh really...
Is there a property to determine what objects are children of a Dummy Helper? Like what isGroupMember does for groups.

JHN
09-04-2009, 08:22 AM
$object.parent.name


-Johan

AkramParvez
09-04-2009, 10:25 AM
Try this:


ObjAry = getMAXFileObjectNames file
mergeMAXFile file ObjAry #select

deselect $helper_name.children
deselect $helper_name
delete $


$helper_name.children this will give array of children of the helper..

SoLiTuDe
09-04-2009, 06:17 PM
^That's pretty much exactly what I was thinking.
Something to watch out for are layers -- if something comes in to a hidden layer (ie layer 0 but layer 0 is hidden) it won't be selected after the merge.

cridalab
09-08-2009, 03:52 AM
thanks Akram - just what I was needed.
And thanks for the warning SoLiTuDe about hidden layers.

CGTalk Moderation
09-08-2009, 03:52 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.