I'm trying to create a script that will take a random selection of objects, and organize them into 3 "piles" it should be fairly simple, and I'm sure I'm just about there... but when I try to execute it I get an error message, it reads: "//Error: No object matches name: " Anyone have an idea what's wrong? This is only my…
Eh all, So, my knowledge with mel scripting is very limited but I figured out the basics of the script at the bottom of this link http://ndhaussy.free.fr/maya_object_spreading/ where Nicolas shows how to spread using constraints. So I type the command spreadObjectsOnSurface ("objectB", "objectA", 20) and it works as…
Hi, I've created a toolbox with a bunch of buttons written in MEL. I'm wondering if I can port that window into Python without having to completely rewrite all the buttons, just re-code the GUI. And if so where should I go to learn how to create a Phython toolbox, I checked the Maya help and didn't really see a tutorial in…
Hi all! I am trying to do a script who can do two diferent things depending if something is selected or not. I am looking a command like the “object exists,” let’s say… if( something is selected ) { // do this } else { // do this instead } I think it could be something like this but is not working if ( `ls -sl True` ) {…
Hi, Suppose I made a blue blinn color material through MEL. There is anyway when I again click on the button it's assigning the random color or changing the color of the material from blue to Pink, Red kind off? <p>window;<br>frameLayout -label "jayant";<br>flowLayout -columnSpacing 7 -w 20 -h 50;<br>symbolButton -w 40 -h…
After unitizing all the faces on an object sometimes the UV shells will be created facing V up, and some times they'll be created rotated 90 degrees U up in the UV editor. Is there a way in Mel to query if they got rotated so I can then rotate make them face the correct direction. I only need to do this on a single face or…
I know you can directly connect two attributes with the connection editor or mel script, but what I can't figure out is how to connect them with some condition/expression which is evaluated each time the attributes are changed i have one attribute that is in degrees rotation and i want to connect it to another attribute…
Hello. This MEL code is great to render when you have problems (unable) to select which frames to render, however is there any way to stop the render view to keep popping in each rendered frame? global proc renderIt() { global string $fileName; global int $end; global int $sta; setAttr -type "string"…
I've been trying to work on my MEL Scripting by creating a cleanup script in Maya and I've hit a roadbump. The script creates a new window with a few checkboxes with two buttons to confirm and close the window. Before running, it checks to see if you have an object selected before doing anything. In the back end, it's…
Hi guys! I decided to develop my sculpting skills, thats why I have picked a quest to model Mel Gibson. I have spent a while figuring out the facial anatomy, construction of the skull and face, and other stuff like that. It seems ok while doodling some random faces, but in case like that it doesnt seem to work. I started…