PDA

View Full Version : Merging all objects under helper


cridalab
09-03-2009, 11:53 PM
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-03-2009, 11:59 PM
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, 12: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, 07:22 AM
$object.parent.name


-Johan

AkramParvez
09-04-2009, 09: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, 05: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, 02:52 AM
thanks Akram - just what I was needed.
And thanks for the warning SoLiTuDe about hidden layers.

CGTalk Moderation
09-08-2009, 02: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.