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

Mule: Dataweave - date formatting from strings

I've been searching around and can't find (or didn't recognize) a solution to this issue. I'm very new to MEL, so please be kind. :) I am building a service that will accept 2 dates as strings. I want to be able to accept any (within reason)…
Keith Fosberg
  • 89
  • 2
  • 9
0
votes
1 answer

MEL (Maya) - W-shaped cube arrangement won't intersect at points

Similar to a previous exercise, I am arranging cubes in a letter W. Again, if you're having trouble visualizing the end result, then think of every cube as a pixel, building a sprite of 'W'. I created 4 sections of my code, 1 for each stroke making…
Sarki241
  • 21
  • 3
0
votes
4 answers

Get value from defaultMuleMessage

I am trying to extract a value from the defaultMuleMessage datatype but cannot get the syntax correct in Mule 3.7.3. Can anyone help? The value I am trying to get to is found in the variable tab in the Mule debugger: initialMessage…
user3165854
  • 1,505
  • 8
  • 48
  • 100
0
votes
1 answer

Load preset directory in Maya with python/MEL?

I have a folder where I'm storing some maya presets (specifically nCloth presets) and I would like to make this directory available to all of the users on my current network. To do this, I would like to have this folder added to the MAYA_PRESET_PATH…
barrt051
  • 242
  • 3
  • 13
0
votes
1 answer

Unnable to modify or query image sequence path with token from file nodes

I have referenced node, which path of the texture used is an image sequence: path\file.< f >.iff (I put it separated so that the editor doesn't change it) When i do getAttr texture_path = cmds.getAttr('{}.fileTextureName'.format(file_node)) I…
Darkgaze
  • 2,280
  • 6
  • 36
  • 59
0
votes
1 answer

MEL duplicateReference return value?

I found this on the script called with right click on outliner -> reference -> duplicate, and found the original script. I select a referenced item in my scene. Then, I do: string $test = duplicateReference 0 " "; It doesn't return the new…
Darkgaze
  • 2,280
  • 6
  • 36
  • 59
0
votes
3 answers

Mel check if unresolved name exists

How can I check if a reference with a particular unresolved name is loaded using an if statement. Thanks Pseudo code example If (referenceLoaded "C:/bridge.ma"){ do stuff}
Milesklc
  • 3
  • 4
0
votes
1 answer

Construct MEL expression to retrieve String value

I know I shouldn't be asking about this because it looks so simple, yet I've been trying a few days and still unable to retrieve the highlighted value as shown in the screenshot below. It's driving me crazy. I tried out a few combination of MEL…
Chevon Teo
  • 7
  • 1
  • 7
0
votes
1 answer

Mel Check if namespace or object exists

I get a syntax error every time I use the following mel script string $namespace = "old_house"; If ('namespace -exists $namespace'){print "yes";} Can anyone tell me what I'm doing wrong?
Milesklc
  • 3
  • 4
0
votes
4 answers

setAttr of a list in maya python

I'm still figuring out how Python and Maya work together so forgive ignorance on my part. So I'm trying to change the attributes of a list of joints in maya using a loop like so: for p in jointList: cmd.getAttr(p, 'radius', .5) and I get this…
Tomethy
  • 3
  • 1
  • 3
0
votes
2 answers

Maya command not return reference list from *.ma

In Maya I execute command to get the list for references included in the file: cmds.file(fileName, q=True, reference=True) It returns a list of the first level for references. And there is already a problem. If the file has an extension *.mb - then…
Massimo
  • 836
  • 3
  • 17
  • 38
0
votes
0 answers

parenting do not cause translate offset - strange behaviour

I'm setting the object as a child of another object. Usually it's [0,0,0] translation point is then set to the pivot of the parent object and the child gains some offset in location to maintain position. I do not know it does not work like that in…
Kowalski Paweł
  • 594
  • 1
  • 6
  • 27
0
votes
1 answer

How to dynamically update menuItem in MEL script

I am trying to update a menuItem based on the option chosen in another option box. What I actually tying to do is to get a list of folders in one option box (example: project folder names) and when I choose a specific folder (project) in the option…
Bebin
  • 1
  • 1
0
votes
1 answer

Using MEL Expressions on Maya Particles to Control Joint Rotation

I've used an expression to emit particles on the death of a first particle object and it works really well. What I want to do now is use this second set of particles (with defined lifespan.PP) to drive joint rotation, again using expressions ie…
mdivjak
  • 11
  • 2
0
votes
1 answer

Using a string channel box to reference particle object

I am using an emit command in the per particle editor to emit new particles. This expression is in the per particle attribute editor of nParticle1. $particleName = nParticle2 ; emit -o $particleName ; My expression works fine. What I am trying to…
F.Richer
  • 1
  • 1