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

Firing a simple python script using a MEL button's -c flag?

Im trying to fire a python function using a button created with MEL. So I just wanted to know whether or not im understanding the docs correctly, so I just used a simple print call to test whether or not im correct in my assumption; this is what I…
-1
votes
2 answers

hot to create a python script in Maya that cycles thru all perspective cameras in the scene?

I'm trying to translate this script from MEL to Python but no luck, anyone can help? I got to the point where I can get a list of all perspective cameras, but I can't figure out how to iterate over the current camera and look thru the next one in…
-1
votes
1 answer

Mel Button Color ScriptJob?

New to mel and I'm writing a UI for object selecting in my Maya scene and I need help on how I can use the scriptjob to change the button color to white when the object is selected and back to default color when object is deselected. Button color…
pro nerd
  • 13
  • 5
-1
votes
1 answer

How to find list of Shave n haircut shapes in Maya and its shader list connection using python

I need to print each shave shape and its assigned shader name if assigned. Please help in this. import os import maya.cmds as cmds shave_list = cmds.ls(type='shaveHair') cmds.select(cl=True) a = 0 list_texture = [] while a < len(shave_list): …
Murali
  • 23
  • 4
-1
votes
2 answers

Proper way to use setAttr with channel box selection

please bear with me - I'm new to all this. I tried the searches and have only found bits and pieces to what I'm looking for, but not what I need to connect them. Basically, I'm trying to create a Python script that allows the user to simply "0" out…
Gogo
  • 25
  • 1
  • 7
-1
votes
1 answer

Maya:change parent of object at the time of Animation

i want change parent of object in the frame for example i have 3 object in my maya project i want third object child first object in frame 0 to 10 then in frame 10 change Third object parent to second object. can i do it white maya?or need write…
sadegh
  • 1,720
  • 1
  • 16
  • 30
-1
votes
2 answers

Python script to uncurl or unfold geometry along a curve

I have been all over the internet trying to find the answer to this one and I've reached the end of my patience. What I am trying to achieve is pretty much what the standard bend deformer does but the only difference is I want it to unfold along a…
-1
votes
1 answer

How to find last imported file path and name in maya using Mel?

I am looking to store information of the last imported file in Maya. So when I drag and drop a file it will store file path and filename.
-2
votes
1 answer

Python function in Maya ascii file

I want to run some python code (function) as soon as I open .ma (maya ascii) file. So can i manually edit ma file and write some python code in it. so my question is how do I "Embed" python code in .MA file. MEL also fine. some mel code works, but…
Theprash
  • 147
  • 1
  • 2
  • 9
-2
votes
2 answers

Passing variables from MEL to Expression MAYA

hie i have a slight confusion as to why what writing is not working. in my MEL script editor I'm writing string $Adistance = ("distanceDimensionShape1"+".distance"); expression -s (" $Bdistance = $Adistance; joint2.scaleX = $distance"); but I get…
Raspberry
  • 277
  • 1
  • 3
  • 11
-3
votes
1 answer

Select all mesh objects in scene with transforms

Is there any kind of script or built in function to Maya that selects all objects with rotations or translates less than or greater than zero. And scale less than or greater than one? Any help would be appreciated
-3
votes
1 answer

Maya Mel : Enable or disable button or change background color by another button

How to enable or disable button or change button background color by another button in maya mel. This my code so far. global string $btn2; global proc fun(string $btn){ button -label "button 2" -enable false $btn; } window -width…
Mahmoud Salem
  • 104
  • 1
  • 5
1 2 3
27
28