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 MEL shelfbutton

I am pretty new to MEL and as I was exploring around this MEL script, I found out that the user have write some lines that I totally do not get it. And yet I am interested to know why this person done it.. Anyway, can someone kindly explain why does…
dissidia
  • 1,531
  • 3
  • 23
  • 53
0
votes
3 answers

Python - Convert List

command cmds.polyInfo (fe=True) output: [u'FACE 64: 48 49 50 51 52 54 64 74 84 94 104 \n'] How to convert it to a list of this kind? [48, 49, 50, 51, 52, 54, 64, 74, 84, 94, 104] I suspect that it is…
SAF
  • 309
  • 2
  • 13
0
votes
1 answer

How to call Python in Mel and icon-shelve issue

I have some trouble in finding ways to call python functions inside of a mel script. Basically, I have a few Mel scipts in which one creates a new shelf in Maya and inside it, are a few lighting tool button(spotLight, areaLights etc.) As I am still…
dissidia
  • 1,531
  • 3
  • 23
  • 53
0
votes
1 answer

Mule string concatenation of escape characters

Lets assume that emp-no has the value of 12345 I want to create a SQL query at runtime that will change select * from emp where emp_no = '#[flowVars['emp-no']]' to select * from emp where emp_no = '12345' What is the correct MEL syntax as I…
Jaco Fourie
  • 112
  • 3
  • 11
0
votes
2 answers

Print current frame during command line render?

Is there a way to basically print my own output during a command line render? Let's say I don't need/want all the other output that maya spits out by default, I know you can change the verbosity level, but there's very specific things I'd like to…
Shannon Hochkins
  • 11,763
  • 15
  • 62
  • 95
0
votes
1 answer

Running python from mel callback with Render command

I need to run a batch render command via terminal, and use the mel callbacks, to run a python module. The terminal command I'm using is this: Render -preRender "python(\"import sys\nsys.path.append(\"/Volumes/raid/farm_script/\")\nfrom run_os import…
Shannon Hochkins
  • 11,763
  • 15
  • 62
  • 95
0
votes
1 answer

Mule Using MEL in Custom Business Events component

Please advise how I need to use MEL in Custom Business Events component, Key Performance Indicators. According to MEL documentation, I need to use the expression #[xpath('//xpath/expression')] To get access to XML message I use the following…
user3042795
  • 29
  • 11
0
votes
2 answers

Objects not Extruding in MEL

I am attempting to control extrusion of an object via rotation of another object in MAYA. But for some reason it's not working. It keeps showing I am getting a syntax error. i am not sure what is wrong with it or how to fix it? This is the code for…
tailedmouse
  • 365
  • 3
  • 16
0
votes
0 answers

Maya MEL/Python scriptJob. Run script when NonDagObject created

How do I set sriptJob flags if I want to run a script when NonDagObject is created. E.G After this shadingNode -asRendering renderPass; I would like to run function A. I can't find such event in docs.
IKA
  • 151
  • 1
  • 3
  • 11
0
votes
1 answer

Add multiple proxies to references in a scene

I just want to know how I can add multiple proxies to referenced files in my Maya scene. Scenario : We select objects which contain "_v001" : select -r "*_v001"; We create the function to add proxies for each referenced files : global proc…
jbltx
  • 1,255
  • 2
  • 19
  • 34
0
votes
2 answers

Maya M.E.L : Is it possible to store an array of type joint?

Hi I am a new MEL user and have been playing around , searching around but can't figure this out: I was trying to move all the joint transform rotation values to the joint orient values so that i can clean up the attributes of the transforms without…
the pillow
  • 412
  • 6
  • 14
0
votes
2 answers

Maya expression syntax error

What is wrong with the following expressions that I am trying to set on a particular attribute in Maya. All are just different approaches. Expression 1: directionalLightShape1.intensity = sqrt(noise(time)); Error: expression -s…
Bleeding Fingers
  • 6,993
  • 7
  • 46
  • 74
0
votes
1 answer

CUSTOM PRESETS PATH FOR MAYA

I created the render preset in my machine, it automatically creates the mel files in C:\Documents and Settings\narasimham.k\My Documents\Maya2010\2010-x64\presets. I copied those files in D:/ and change the path in Maya.env as MAYA_PRESET_PATH=share…
0
votes
2 answers

Center Pivot without xform

Is there a way to center the pivot of an object without the use of xform? I really would like to try and find a pyMel version of this, or the maya api, as xform is generally 10x slower than a pymel or api solution. Obviously you can achieve it with…
Shannon Hochkins
  • 11,763
  • 15
  • 62
  • 95
0
votes
1 answer

How do I use the GeometryConstraint class?

I've been trying to get this to work for so long now, I've read the docs here, but I can't seem to understand how to implement the GeometryConstraint. Normally, the derivative version of this would be: geometryConstraintNode =…
Shannon Hochkins
  • 11,763
  • 15
  • 62
  • 95