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
2 answers

In MEL, how do I translate an objects pivot in one direction only?

I want to write a script that will take multiple objects, center their respective pivots and then translate the pivots in y to 0. Here are two variations of my attempts so far: string $sel[] = `ls -sl -typ transform`; string $obj; for ($obj in…
shfury
  • 389
  • 1
  • 5
  • 15
0
votes
1 answer

Attribute template in Maya

I am working in Maya 2014. I have my custom attributes showing in the Channels Box. I am now trying to show my custom attributes in the Attribute Editor. I have an AETemplate file called AECamera_OrthoTemplate.mel code below: global proc…
Hinchy
  • 143
  • 9
0
votes
1 answer

Is it possible to use Mule MEL expressions against XML, DOM or other raw structures?

I am trying to avoid making a XML to JAXB transformation due to performance issues - the message can be fairly complex. Is it possible to use expressions against message not converted to POJO? I've tried using XML to DOM transformer but afterwards…
huksley
  • 127
  • 1
  • 7
0
votes
1 answer

Read NURBS control points in Maya from an ASC file

Say I have an ASC file with 100 (x,y,z) coordinates (representing a helix-like world line trajectory). I want to import that file in Maya and create a NURBS with each of the coordinate from my ASC file as a control point. I know how to import asc…
KPJ
  • 25
  • 1
  • 4
0
votes
1 answer

Execute a MEL command after a window has opened

I'm writing a MEL script which involves opening the grease pencil UI toolbar. I want to remove the close button on that toolbar. I tried doing GreasePencilTool; window -edit -tbm 0 greasePencilFloatingWindow; but get Error: line 2: window: Object…
dashik
  • 67
  • 1
  • 1
  • 6
0
votes
2 answers

Mule ESB can not trigger Choice 'when' condition

I can not get Mule ESB to trigger a Choice 'when' condition I converted a Hello World flow to to accept aJSON object (inserting a JSON to Object node) and execute a Choice node. But I can not trigger the 'when' condition of the CHoice statement; I…
user3407479
  • 277
  • 6
  • 21
0
votes
1 answer

Mule ESB: Can not get MEL to access field

I have the following flow, that accepts a JSON object from http, then converts the JSON object to a standard Object, and then performs a CHOICE on the object. Below is the flow:
user3407479
  • 277
  • 6
  • 21
0
votes
0 answers

Updating Attribute Editor

I am trying to update all the tabs of the shaders (in the Attribute Editor) for every new shaders added. I chanced upon this Mel command - updateAE that I gather the information from here I tried doing a simple test, while I have a few surface…
dissidia
  • 1,531
  • 3
  • 23
  • 53
0
votes
1 answer

Displaying and intrepreting tab layouts

I would like to know if it is possible to 'see' and display the following tab layout maybe through the Attribute Editor etc? Or how can I interpret it? In the following, I selected the shader - ShaderParam_resGen_srf01 but after searching through…
dissidia
  • 1,531
  • 3
  • 23
  • 53
0
votes
1 answer

Python Command to render vray

Making a small script to write out .vrscenes for me, however I'm a little stick with getting them to render. I'm using the pymel render command, which seems to call the maya software renderer rather than vray itself ignoring all the rendersettings I…
ABCheshire
  • 23
  • 1
  • 6
0
votes
0 answers

Time counter for opening Maya file

I am trying to open an .mb file format, but it is taking pretty long to do so, in which I suppose the problem that is causing it is due to the amount of reference rigs in the file itself. And hence, I was thinking, is there any sort of python/mel…
dissidia
  • 1,531
  • 3
  • 23
  • 53
0
votes
1 answer

why formLayout not found?

string $formEX = `formLayout -numberOfDivisions 100 -p formLayout5`; string $buttonEX = `button -l "button" -h 26`; $formLayout8 = `formLayout -q -ca formLayout5`; formLayout -e -attachForm $buttonTime "top" 0 -attachForm $buttonTime "left"…
Anvesh Chary
  • 65
  • 1
  • 11
0
votes
0 answers

How to dump "sourced mel script" from autodesk maya memory?

Maya is a 3d animatin package, and it has a scripting lanaguage named MEL which looks very similar to C syntax. My question is sometimes people encrypted their mel code, wrap them inside a .mll plugin. and source the code into memory before calling…
Shuman
  • 3,914
  • 8
  • 42
  • 65
0
votes
1 answer

Python script that runs from MEL Command

I wrote this Python script that should run when I use my MEL command. It worked before when I tested it on my school computer. But now it doesn't seem to work, I don't know if it's changed since last, I can't see that it is either. When I run it…
Illscha
  • 33
  • 1
  • 2
  • 6
0
votes
1 answer

Number/Version Paddings in Maya

I am trying to write out a code for doing a number/ version padding but as I tried to search thru the internet, I am however, only able to find a MEL example in which it works but it doesn't make sense to me (most probably I do not understand how it…
dissidia
  • 1,531
  • 3
  • 23
  • 53