Notifications
Clear all
[Closed] A MXS Command for Link and Align
Jan 15, 2007 2:02 pm
Hi,
I`m sure I read in the docs a MXS command that aligned and parented 2 scene objects in one neat line of code. Something like:
connect Node01 Node02
where Node02 is aligned to and also made a child of Node01 .
I tried to find it again but couldnt find anything,can anybody remember it?
Cheers
Dan
5 Replies
Jan 15, 2007 2:02 pm
b=Box()
s=sphere()
s.transform=b.transform
s.parent=b
does that do it for you?
Jan 15, 2007 2:02 pm
Thats how I usualy about it but, but Im sure I saw something in the mxs help which was a little bit more concise. I
m probably remembering a help file for something else.
Thanks for the reply
Dan
Jan 15, 2007 2:02 pm
Interesting, I didn’t know about that one either. Looks like it works well to. No wonder I didn’t know about it because attachObjects sounds like it is attaching two mesh objects together or something.