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…
As far as I know, MEL seems to be flag based while what you seem to be looking for is event based (ie Actionscript) and even though there are scriptjobs, I took a look at the documentation and there was no flag for double click. Best bet would be to go the python route though Im just a beginner in MEL so maybe someone more…
Hey guys, I'm trying to give a name to each bend being created by a MEL script so it doesn't cause trouble with other bends in the scene. The script below basically takes a bandaid (the bandaid part and the two tabs on either side you pull off) and applies four bends to it so you can peel them away realistically. I've done…