PDA

View Full Version : container MEL


ColinKennedy
10-30-2010, 09:15 PM
Just a quick question, when I have a number of different objects selected (say, in the hypershade for example), and I want to put them all in a container together using MEL, how would I do that?

In other words, what's the MEL script for adding a group of selected objects into a container?

jdj
10-31-2010, 03:07 PM
Use the container command. This should probably do the trick (I can't test it right now, but it ought to work):

container -addNode `ls -sl`;

Cheers
/ Daniel

ColinKennedy
11-02-2010, 02:56 AM
It worked, thank you kindly!

CGTalk Moderation
11-02-2010, 02:56 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.