Reputation:
I want to add some selected controller of a character in a string and use this string for selecting the controllers again with a GUI button.
Thanks.
Upvotes: 0
Views: 2209
Reputation: 397
I've found this website to help a great deal with learning MEL script.
http://nccastaff.bournemouth.ac.uk/jmacey/RobTheBloke/www/mel/
You want to: Enable script editor in Maya Go to history at the top of the window Select ECHO COMMANDS Select your controller for the character and understand what the code is saying
From here, copy that code and paste it up in your script shelf.
I.E.
[controller is called nCircle1, you have found this out through the process I've given you]
select -replace "nCircle1"; //copy this into your shelf OR
string $controller = `ls -sl`;
select $controller[0];
If you want to learn more about this stuff, I suggest you visit that site and learn about scripting.
Do your research before coming to StackOverflow. It'll make your experience with the community a whole lot better. This question is extremely simple and could be solved on your own, without asking anyone for help.
Upvotes: 1