I'm increasingly finding situations where it would be benefitical to pick up mel or python. I need some help with something, and hopefully I can study it.I have a few hundred objects correctly named in Maya. I need them all to have their own duplicant of the shader network, with with a name that matches the object's. An…
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…
Hello everyone, Mostly for educational purposes I'm trying to create a simple rotate tool UI window. But I feel I'm stuck on the Mel syntax and various things I tried just don't work. -I'm using a switch case statement, but I'm wondering if I can omit this by directly inserting the axis into the rotate mel command…
Hi @claydough, since you have been programming 1999, may I ask if you have ever programmed in a language with proper OOP/FP? It's cool you can figure out many ways to workaround MEL's limit, but they are workarounds: - Write it to a file (IO) - Make it a preference (intended for cross-session data sharing) - Store in a…
Hey been working on a pivot tool for maya just so it makes it easier to put the pivot easier for common areas. I have that all up and running though where I'm running into a problem is putting the pivot on a selected vertex. I get the xform of the vertex but my problem is how would I split the selection array. Example:…
I don't do Mel but you need to do this... 1.Get a list of shading groups 2.Get a list of members from each shading group - which will be shape nodes or faces 3. Store all that for later It's about 5 lines of pymel, no idea how it'd work in mel. It gets awkward if you're only interested in a subset of objects or your scene…
Hi, I need some help on a mel script, I hope someone can take a bit of time to look at my code and tell me why it doesn't work and how to fix it. I suspect it could even be a Maya bug... What I am trying to do it create buttons dynamically on the fly using a '+' button. The '+' button will create a new button when I click…
Hi there! Right now I am hard-coding a piece of code, and I dont know almost anything about mel (but i am trying) The thing is I want this code works for any cam i have selected, right now only work if the camara names that way setAttr "cameraShape1.filmFit" 3; setAttr "cameraShape1.overscan" 1; setAttr…
was trying to install mirrorme.mel script in maya. http://www.cedric3d.com/dl/MirrorMe.mel but source mirrorMe.mel gives me error that no file can be found. I had 3 script subfolders (one under maya folder, another under maya--->2015-x64 folder, third under maya--->2015-x64--->prefs ) all under…
Hey everyone, I've been teaching myself MEL scripting but I'm sort of stuck on a particular syntax. I've searched all over for my specific problem but I'm not sure which key words I should be searching for and can't find anything, so thank you in advance to anyone who can help. I have a button setup with a command within…