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

Avoid open video file after playblast

I'm finishing a script that playblasts several pieces of animation into different movie files. It works fine but I'd like it to NOT open all the video files once it is done playblasting them. Can't find that option even inside maya playblast…
Mendel Reis
  • 55
  • 2
  • 14
0
votes
1 answer

Evaluate a node in a Maya MEL script

I have a Maya MEL script, which inserts some nodes. The evaluation seems to be deferred until the script finishes. I guess this comes from the pipeline evaluating when the shape is requested by the renderer, so the dirty propagation starts. Now I…
allo
  • 3,955
  • 8
  • 40
  • 71
0
votes
1 answer

Playblast query compression

I'm working on a custom playblast tool for Maya and I'm running into a little problem on how to query the available compressions for each format to perform the playblast. I can use: import pymel.core as pm availableFormats = pm.playblast(query =…
Mendel Reis
  • 55
  • 2
  • 14
0
votes
2 answers

Toggle xRay for selected object in Maya with script

I'm new to mel script. I know that I can toggle manually xray with the code. displaySurface -xRay true; //Xray on displaySurface -xRay false; //Xray off But I want it to toggle automatically, like if(xRay on) set xRay off else set xRay on I know…
123iamking
  • 2,387
  • 4
  • 36
  • 56
0
votes
1 answer

Call MEL script from Python - Error occurred during execution of MEL script

I'm trying to create a simple Python script that will call a MEL script from within Maya to create a cube. Yay! Should be fairly straight-forward althougth I may have got the syntax for the source files wrong. Here's what I have: The runMEL.py…
Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
0
votes
1 answer

PYMEL Maya UI crazyness

I'm having trouble with a script i judged simple, yet here I am! The thing is I have no real problem with the ACTUAL script, but with the Maya UI. It seems I can't avoid the creation of multiple windows, nor delete it using deleteUI("nemeOfUI").…
Mendel Reis
  • 55
  • 2
  • 14
0
votes
1 answer

Trying to convert MEL script to Python

I currently have a random object generator script for MEL. I'm trying to convert it to Python. This is a homework assignment and I'm stuck at a particular section. I'm trying to add a random scale to each axis. I keep getting "can only concatenate…
0
votes
1 answer

Invalid flag "testVisibility" in Autodesk Maya 2016

I'm trying to determine if a set of mesh nodes is currently visible or not. Using pymel and isVisible() works, but it's a huge performance hit. Looking through the documentation, I found something that would (hopefully) solve my problem, the flag…
user2655904
0
votes
1 answer

Link procedure to each button command maya

I made this script that creates two material with different color values.How can I attach this procedure so that when I click color 1 button it creates material color 1 and color 2 when I click second button.If there is a much better way to achieve…
skb
  • 1
  • 1
0
votes
1 answer

color value in a loop maya

Can someone please help me with this simple script. I just want to apply the material color that is in an array. Here is what I have for now. How can I link so that my material two("colors2") looks for values…
skb
  • 1
  • 1
0
votes
1 answer

Search and filter button label name in maya mel

I am a newbie to coding, and I am trying to find a way to have a search field to filter only the buttons I want.I created an icon text button in a window and want to filter it based on button label name Here is an example to show what I am trying to…
skb
  • 1
  • 1
0
votes
2 answers

Select all joints of a character with Maya MEL

I wrote an MEL script in Maya. So I want to select a joint, then run the MEL script and it selects that joint and all its children. I very new to MEL, So with running the code, it throws a bunch of errors. Can you help me reduce error or better to…
Orilious
  • 331
  • 5
  • 16
0
votes
1 answer

How do I set all display edges in a model to hard (in Maya 2017)?

How do I set all display edges in a model to hard (in Maya 2017)? I found a MEL script in a different post that lets you select all hard edges (this one: polySelectConstraint -m 3 -t 0x8000 -sm 1;), but I want to turn all display edges to hard,…
0
votes
1 answer

Query parameter date is changed to string in Mule

I have a query parameter called modifiedDate defined as date-only in the RAML file but when I look in the Mule debugger I see the modifiedDate 2001-10-10 as a string data type. RAML ... queryParameters: modifiedDate: type: date-only …
user3165854
  • 1,505
  • 8
  • 48
  • 100
0
votes
1 answer

Is there a command to get the average position of currently selected objects or components in Maya? (Maya 2016, Python, Mel)

Is there a Mel or Python command that returns the average position of the currently selected objects and/or components? I know that in component selection mode, selecting a set of vertices will cause the manipulator context to move to accommodate…