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
1
vote
1 answer

Merge UV changes from .fbx file back into Maya

I am trying to export a FBX model from Maya, modify some of the UVs externally, and then reimporting it back to Maya, replacing just the portions that have been changed. To export: cmds.file(myFile, type='FBX', exportSelected=True, lf=False,…
John Tan
  • 1,331
  • 1
  • 19
  • 35
1
vote
1 answer

Maya: How to query the y value of a point on a mesh if I have the x and z coordinates?

I am working in Maya and I have a curve and a "floor" mesh. At any point on the curve, I have x and z values (world space), giving me the top-down 2D location of the point. I want to project the curve down onto the floor to find the y value (i.e.…
Soup42
  • 11
  • 3
1
vote
1 answer

I have problem with pivot in Maya and Blender

I have pivot problem. I am setting, a pivot in Maya (for a car wheel) and when I import the fbx of the model in Blender, pivot point is resetting on null. Any solution about that problem?
user11009475
1
vote
1 answer

Repeat current poly reduce function on multiple objects that are selected?

I'm looping through multiple objects, but the loop stops before going to the next object. Created a loop with condition. If condition is met, it calls a ReduceEdge() function. Problem is it will only iterate once and not go to the next object and…
1
vote
1 answer

Paint context and tool in maya for custom blendshape

I have created a custom blendshape node in maya with certain functionalities. It also, as a default maya blendshape, takes as input multiple targets which I would like to paint the weights for. I watched the tutorial from Chad Vernon about doing it…
dd95
  • 239
  • 2
  • 16
1
vote
0 answers

iterated mel script from command by command

I am trying to write a mel script that assigns a CV curve (with 5 knots) to each vertex on an animated object. For each vertex on the animated object the base of a single CV curve is then aligned using the constraints in order: geometry, normal…
twyeld
  • 43
  • 6
1
vote
4 answers

How to modify existing panels in Maya using MEL or Python?

I've been writing tools in Maya for years using MEL and Python. I'd consider myself an expert in custom window/gui design in Maya except for one area; modifying existing panels and editors. Typically, I'm building tools that need totally custom…
Soviut
  • 88,194
  • 49
  • 192
  • 260
1
vote
1 answer

How to suppress/mute Maya script editor warning correctly with Python or Mel?

I need to open some large/messy Maya scenes from other artists. It always prompts out a lot of warnings and freezes Maya for a long time. I try to write a custom "open file" with python to suppress warning messages. But it seems not really "mute"…
YHS
  • 137
  • 9
1
vote
1 answer

How do I get list of all types in Maya's ls command?

In Maya there is a ls command which lists all objects in a scene (or DAG). pm.ls() Here is reference to ls command. We can list specific type of element by passing type parameter. pm.ls(type="joint") Some possible types are, camera, mesh, joint…
Santosh Kumar
  • 26,475
  • 20
  • 67
  • 118
1
vote
2 answers

SceneKit: Export a UVSet or Copy UVs from one object to another

Could someone tell me the lines of code I need to copy the UVs from one model to another (which have identical topology) in Swift? Or how to export a UVSet from Autodesk Maya and apply it to a 3D model in Scenekit?
Geoff H
  • 3,107
  • 1
  • 28
  • 53
1
vote
1 answer

In Maya, how to find all shells in a UV tile?

I'm looking for a way in Mel or Python to determine if a particular UV shell crosses across multiple texture tiles in Maya. I know Mudbox has a check for this, but I can't find an easy command for this in Maya in the interface or in script. One…
mranim8or
  • 159
  • 2
  • 9
1
vote
1 answer

Accessing `Auto save` attribute in V-ray's frame buffer

I am working on a Python script that needs to check the state of the V-ray frame buffer attribute check box -history settings, Auto save in Autodesk Maya. I am having trouble finding the MEL/Python command to access this setting. Thanks.
winteralfs
  • 459
  • 6
  • 25
1
vote
2 answers

Maya shelves and relative paths

Is there a way to have a relative icon and script paths for custom shelves in maya? I want to pass on my shelf to my friend. Rather than edit the shelf each with a new path to each icon and each source, I'd rather put all the icons in a folder…
James Porter
  • 119
  • 2
  • 12
1
vote
1 answer

Maya Python: mel.eval(invertSelection;) not working

Pretty much exactly as the title states, I've got a simple python script in Maya that isn't functioning. import maya.cmds as cmds import maya.mel as mel def createCylinder(): # Check if cylinder "trunkCylinder" exists. Delete it if…
Design Runner
  • 47
  • 1
  • 8
1
vote
2 answers

Assign shaders from one mesh to another in Maya via Python

I am looking for a way how to transfer shaders from one character to another character if they are totally similar. So I am looking for the way how to query shader from one face of the mesh to another completely similar one. I am already stuck on…
Vlad
  • 77
  • 6