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

Using ProgressBar class

I'm not following how to use the UI type ProgressBar in pyMel. The old way, or the derivative of this was to do this: cmds.progressBar('barName', edit=1, progress=50) However I can't seem to figure out how to use the pymel version of this. This is…
Shannon Hochkins
  • 11,763
  • 15
  • 62
  • 95
0
votes
2 answers

How to query Maya in script for supported file translator plugins?

I'm trying to specify an FBX file in MEL using the command file -f -pmt 0 -options "v=0;" -typ "FBX" -o on one computer this works great. On another, it fails but DOES work if I use -typ "Fbx" I think I'd like to query for the supported…
0
votes
1 answer

How to get the menu items from an existing menu in maya

Hi I have the question of how to find the menu items of an specific menu and put the in a list for example: I want to find the menu items of the menu $Mymenu ($Mymenu is a costum menu i made with other code and each time I open maya it is…
0
votes
1 answer

Maya MEL command to set focus to a particular tab in the Attribute Editor

How can I do this? I've looked through the Maya documentation and all I can see that's related are the commands refreshAE and updateAE, but they don't do the job I need.
Ben
  • 1,321
  • 15
  • 30
0
votes
2 answers

How To Create A CheckBoxList in Maya

i want to create a checkbox list in Autodesk Maya (MEL only) which contains N number of items along with a check/ uncheck option next to it. so that on click of a button i can get value of all checked or unchecked items. There is a component called…
0
votes
1 answer

Maya: Show merged vertices

I am trying to select all vertices on an object that have been merged after executing a polyMergeVertex mel command. The original idea was to keep track of what vertices existed before the merge and then compare them to the vertices after the…
Abdulla
  • 1,117
  • 4
  • 21
  • 44
0
votes
2 answers

import python into pymel

I was working on my Auto-Rig script and noticed that the code was getting long making it hard to read and focus on one part. I was looking into importing a python file and call the functions inside the python file that was imported. Can't seem to…
0
votes
1 answer

Force MEL script to WAIT until previous command completes

I'm trying to write a Maya MEL batch script involving a texture bake operation, followed by a file save operation. This is all placed in a for loop. The script works if executed line by line. But in a loop, what is happening is, it seems the bake…
bobobobo
  • 64,917
  • 62
  • 258
  • 363
0
votes
1 answer

Maya MEL scripting sprintf equivalent

How do you print an integer into a string in Maya MEL scripting?
bobobobo
  • 64,917
  • 62
  • 258
  • 363
0
votes
1 answer

Maya MFnPlugin::registerUI to call Python instead of MEL scripts

I have a C++ Maya plugin. When loaded, it automatically calls MEL procedures to create the GUI: status = plugin.registerUI("LoadGUI", "UnloadGUI");CHECK_STATUS(status); However, registerUI seems to be available for MEL procedures only. How could…
Korchkidu
  • 4,908
  • 8
  • 49
  • 69
0
votes
1 answer

Get previous transforms Maya

Is there a way using NODES to get the previous transforms or in my case translations, from time? I have written a simple expression that does just this but I really want to achieve this with nodes. $transx = getattr 'objname.tx' -frame time -1; Or…
Shannon Hochkins
  • 11,763
  • 15
  • 62
  • 95
0
votes
1 answer

how to add maya outliner to tabLayout

I want to add maya outliner inside of the existing tabLayout I came across a page that shows how to do it in MEL(the second method) how would I do that in python ? myOut= cmds.outlinerPanel() cmds.control(edit=True,parent="outlinerLayout" …
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
0
votes
3 answers

PyMel Rotate Raises Error

I want to randomly rotate a list of objects on a given axis with a random amount retrieved from a specified range. This is what I came up with: import pymel.core as pm import random as rndm def rndmRotateX(targets, axisType, range=[0,180]): for…
0
votes
1 answer

Mel parser outside of maya

Is there any way to execute Mel scripts outside of maya on osx? I'm trying to teach programming fundamentals so don't need to run maya commands, just a place to easily demonstrate variables, loops, functions, etc. Thanks
nicholas
  • 14,184
  • 22
  • 82
  • 138
0
votes
1 answer

Fixing PyMel import error "pop from empty list"?

Im using PyMel to write up some tools, but as of yesterday my PyMel modules won't source, due to an error that I get during import: import pymel.core as pm # pymel.core : Updating pymel with pre-loaded plugins: OpenEXRLoader, DirectConnect,…
1 2 3
27
28