Notifications
Clear all

[Closed] A MXS Command for Link and Align

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
 PEN
b=Box()
s=sphere()

s.transform=b.transform
s.parent=b

does that do it for you?

Thats how I usualy about it but, but Im sure I saw something in the mxs help which was a little bit more concise. Im probably remembering a help file for something else.

Thanks for the reply

Dan

Found it!

attachObjects $point01 $point02

hey … never knew this before !
thanks

 PEN

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.