Questions tagged [mel]

MEL is the Maya Embedded Language used to automate processes in the 3D Computer Animation and Modeling software, "Maya".

MEL stands for Maya Embedded Language, which is a scripting language similar to Perl. It can be used to create automated processes in Autodesks's 3D rendering application Maya.

More information can be found in the Wiki about MEL.

417 questions
0
votes
1 answer

Maya drop down menu

I've got a pretty complex question for any Maya coders... I want to utilize a drop down menu similar to that of the cmdScrollFieldExecuter's [script editor's] "Show Tooltip Help". It looks like a window that has been appended to the bottom of the…
SirJames
  • 387
  • 8
  • 27
0
votes
1 answer

'module' has no attribute 'translateX' error in Maya

I have just recently started writing Python code to be used in Maya. My code looks like this: import maya.cmds as cmds; import random as rand; for x in range (0,10): cmds.polyCube(cmds.translateX == rand(0,100)); x += 1; Maya then gives the…
0
votes
1 answer

Adding Secondary Control Direction to Parented object in Maya

I stumbled on the 'rivet script' when I was looking for a solution to movement for snake scales. I need to constain a rigid object (the scales) at a consistent point to a deforming one. The script has been working great, but now further into the…
JKeil
  • 11
  • 2
0
votes
1 answer

Get the corresponding icon for a type of node in Maya

I want to use the same icons the outliner shows for the nodes in Maya in my Qt tool inside Maya?. Is there any way to find the path of the icons or the icons in Qt of nodes I have depending on the type? Is there... any way to get those icons using…
Darkgaze
  • 2,280
  • 6
  • 36
  • 59
0
votes
1 answer

Programming MEL/Python Script textField to receive all script editor output

I'm trying to figure out a way to get the script editors output to write to a textField control in Maya for a custom-made window. Essentially, I'm trying to rewrite the commandline function without having the separator or input options. I'm having…
SirJames
  • 387
  • 8
  • 27
0
votes
1 answer

MEL script doesn't run properly

So I have 6 objects. Three of them are with _L suffix. And the other 3 have different irrelevant names. I want to rename these as the first 3 objects but switch the _L to R. I finally was able to do this. But it's curious why I don't get full result…
0
votes
1 answer

How to get names from an array and cast them to another array in mel?

How to get names from an array and cast them to another array in mel and also replace part of a name in the process? Like substituting "_L" with "_R" in their names Thank you
0
votes
1 answer

How to get all but last item in a MEL array?

I want to get the user selection and assign all but the last object to one array variable and the last selected object to another variable. how can I do this? Thank you
0
votes
1 answer

MEL function call when radio button selected

I solved it by clearing keyframes at points, I will post my solution when the site lets me. Thanks for your thoughts! Pretty new to MEL! I wrote this function that, if radio button 1 is selected, it rotates ball 1 and then animates it (call to the…
user3295674
  • 893
  • 5
  • 19
  • 42
0
votes
1 answer

MEL assigning the opposite/negative position value to an object

New to MEL. I have created a slider that changes the angle of one of my objects and and it's one the user sets by operating the slide. floatSliderGrp -label "size" -field true -minValue 10.0 -maxValue 30.0 -value 10 …
user3295674
  • 893
  • 5
  • 19
  • 42
0
votes
1 answer

MEL Querying a selected button

I am new to using MEL to write scripts. I have two radio buttons, one and two. When radio button 'two' is selected, I want the script to select the two cube objects I have created in my scene (cube1 and cube2), so that when I use my 'rotate' button…
user3295674
  • 893
  • 5
  • 19
  • 42
0
votes
1 answer

Illustrator file that runs commands upon opening

This is a long shot, but is there a possible way to store a JavaScript (or any sort of executable code) within an Adobe Illustrator file? The reason I'm asking this is because I'm currently trying to automate the process of importing render results…
Falxo
  • 13
  • 5
0
votes
1 answer

Maya LT Batch mode

I'm trying to run a MEL script from the command line (OS X) using Maya LT 2015. Instructions on how to do this can be found here: Autodesk Maya LT - Start Maya from the command line But when I try Maya -prompt or Maya -batch -script "test.mel" is…
0
votes
1 answer

Activating mel script or global proc during attribute change

I have developed a hand IKFK snap tool for my character but, if have to run that script , i have to copy paste that script editor to run it or use shelf button to activate it. Is there any way that i can run the command, if i change my attribute…
Ashwith Ullal
  • 263
  • 3
  • 10
0
votes
1 answer

MEL / Python parent command moves the shapes unpredictably

I can't figure out what is going on. If you Open Maya 2016 create four nurbsCircles and run this script you've got this: // MEL makeIdentity -apply true -t 1 -r 1 -s 1 -n 0 -pn 1 nurbsCircle1 nurbsCircle2 nurbsCircle3 nurbsCircle4 ; parent -r -s…
Alexey Gapon
  • 73
  • 2
  • 11