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
2
votes
1 answer

How to store and then retreive parent-child dependency data (Maya MEL/Python script)

I have a hierarchy that I need to: break apart doSomething() put it back together the same way it was before. I know how to break things for sure, and have plan about what I need to do when they are flat in hierarchy. The problem is how do I…
Miru302
  • 43
  • 1
  • 7
2
votes
1 answer

Freeze scale transform on a parent object with animated child (MAYA MEL/Python script)

I have hierarchy of objects with animation on translation and rotation, the scale xyz are equal and static but not 1. When I freeze scale on a parent mesh it's children's animation goes wild. Is there any way to prevent this from happening? I have…
Miru302
  • 43
  • 1
  • 7
2
votes
1 answer

Move each UV vertex by offset/vector

I want to create second UV set, and then move each UV vertex in an object by vector u=0, v=1.0/number of vertices. The new UV vertex coordinates created for 4 vertices plane should go like this: for vertex 0 (u=0,v=0), for vertex 1 (u=0,v=0.25), for…
Sup
  • 29
  • 1
2
votes
1 answer

Export Maya fluid so that it can be imported into a three.js game

Please forgive my ignorance in the area, but does anyone know how to go about exporting a maya fluid so that it is importable into three.js? I'm new to Maya and I just made my first model to a game I'm making, see below: The afterburner effect from…
Kyle Richardson
  • 5,567
  • 3
  • 17
  • 40
2
votes
1 answer

AttrFieldSliderGrp command used in MEL/Python in Maya

I wanna move the edge of 3D object with a slider in Maya UI. Is it possible to move any component (vertex, edge or face) but not the whole object with the attrFieldSliderGrp command using -at flag? Thank you for your help.
cazanerd
  • 21
  • 1
2
votes
1 answer

How to create a progress window via Python in Maya?

I was wondering if there is a way to create a progress window that shows how long until the moment your program finishes. This is what I have so far, but it's not doing what I expect. I want it to run until all the curves have been created and then…
Kari Noriy
  • 61
  • 1
  • 9
2
votes
3 answers

90 fps in Maya for HTC Vive

I'm developing a game in Maya/Stingray 2017 for HTC Vive VR HMD. As we all know Vive runs games at 90fps minimum (we need to use 90fps for getting a robust VR experience and not getting a nausea). But Maya doesn't have 90 fps preset. It supports…
Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
2
votes
1 answer

List all external assets in maya

Is it possible in maya to list all external assets being used in a file such as textures or other scenes being referenced? Ideally this would be done using python. I'm more familiar with 3ds max, so Im not sure if maya has the equivalent of 3ds max…
JokerMartini
  • 5,674
  • 9
  • 83
  • 193
2
votes
2 answers

getClosestPoint from the mouse-cursor position to first object that hits of the raycast (maya mel script)

researching for getting a worldpoint from the mouse-cursor position to first object that hits of the raycast. maybe an api func getClosestPoint or rayIntersect can do that job ?if so how? (thank you)
Zen Of Kursat
  • 2,672
  • 1
  • 31
  • 47
2
votes
5 answers

Maya - check if an attributes is enabled / disabled

Since hours I try to solve a problem I have with Maya / MEL / Python. I have a script to set values of a fluid container. E.g. setAttr "fluidShape1.densityDissipation" 0.2 Works great... My problem: Actually it is not possible to change the value…
PatrickWe
  • 31
  • 1
  • 7
2
votes
3 answers

Running Post-BatchRender MEL Command

I'm looking for a way to run a MEL script at the conclusion of a batch render. Is this possible? I'm aware of the 'Pre render MEL' and 'Post render MEL' render options, but am looking to run a script at the conclusion of a batch render. This code…
A. Nance
  • 21
  • 5
2
votes
1 answer

Camera Image plane in Autodesk Maya

I'm trying to use a camera bake script from maya 2011 but getting an image plane error. It seems Maya now puts a transform node above the image plane. I also see there is an imagePlane procedure now. Anyone have any ideas on how to attach an…
por4por
  • 35
  • 6
2
votes
1 answer

What is the Python equivalent of (Mel) Substitute, Maya

for j in Xjoints: j = substitute( XrigNamespace, j, '') I'm looking to write a Python equivalent for Substitute, any suggestions would be greatly appreciated. Thanks!
Adam Sirrelle
  • 357
  • 8
  • 18
2
votes
1 answer

Generate MEL to rebuild a model in Maya

I made a 3D tree in Maya and need MEL code to run in a for loop and generate as many trees as I want. Is there any way to convert a model made in Maya into MEL code that would rebuild the tree? I can't just duplicate it because the script needs to…
2
votes
3 answers

How to get root node in MEL Script?

I have come across an existing piece of code that does this, but I assume there must be a better way. So, I need to get a highest level in mesh node in Autodesk Maya. // List all mesh objects string $nodess[] = `ls -type mesh` ; // Replace existing…
panofish
  • 7,578
  • 13
  • 55
  • 96
1 2
3
27 28