Questions tagged [pymel]

PyMEL makes python scripting with Maya work the way it should. It builds on the cmds module by organizing many of its commands into a class hierarchy, and by customizing them to operate in a more succinct and intuitive way.

PyMEL according to its website, makes python scripting with Maya work the way it should. Maya's command module is a direct translation of mel commands into python commands.

The result is a very awkward and unpythonic syntax which does not take advantage of python's strengths (particulary, a flexible, object-oriented design).

PyMEL builds on the cmds module by organizing many of its commands into a class hierarchy, and by customizing them to operate in a more succinct and intuitive way.

185 questions
0
votes
0 answers

pyMel bug? Could not create desired MFn

So when I call the nonLinear function with pymel and save it in a variable like this: flare = pm.nonLinear(objName, type="flare") and I want to get the name of the flare1 Input like this: print flare[0] I get this warning: Warning:…
FzudemAA
  • 3
  • 4
0
votes
2 answers

addAttr method on pymel objects

I can't seem to utilize the addAttr method correctly. I'm using the same arguments as when I call from pymel.core but it's not giving me the same results. I'm trying to add a custom message attribute so I can easily search for certain types of…
0
votes
1 answer

Maya Python Assistance requested: connect attributes based on textfield contents

Background: So thanks to the help of the user Theodox I was able to figure out how to create nodes in the node editor with name prefixs based on the joint you load into the selection field. However: I want to take it a step further and make it so…
Dasteel
  • 101
  • 18
0
votes
2 answers

Parenting multiple objects by their last number, maya python

I am currently working on a script to make a simple crane-like rig. I have a variable to define the amount of joints I want. I also have a variable for the amount of groups/controllers I want. These amounts may vary so the script would be…
Hampus
  • 11
  • 5
0
votes
1 answer

Pass instance name as argument from several UI controls to a single function in Python-Maya

I'm developing a UI in python for maya, and I'm trying to do a function that performs an action when a frameLayout expands, in this case I have several "frameLayout" objects and I would like to use a single function "fl_expand", instead of one for…
0
votes
1 answer

how can search an outside file structure from inside of Maya using python

I am an experienced Maya user but fairly new to programming and there is something I am trying to figure out. I am attempting to create a function for use inside of Maya that would allow me to search the file structure for a texture file. What I…
0
votes
1 answer

How should I create properties using a closure in python?

I'm doing some coding for Maya with PyMel and I'm trying to create some properties in my rig class to wrap some PyMel code. The code for all of the properties was pretty similar, so I figured this would be a good place to use a closure. import…
0
votes
1 answer

Show custom node in outliner Editor Maya

Is possible show custom nodes in clone outliner editor ? I want showing custom groups and children meshes, from method and return to new outliner window. I want create this manager, 4 columns is outliner Four columns outliner in layout: …
Lukas
  • 3
  • 2
0
votes
0 answers

PyMel EulerAngles changes after identity matrix multiplication

I'am using PyMel and I am trying to get the same rotation back from a matrix after I have multiplied the rotation matrix with two other matricies. changeOfBasisMInv and changeOfBasisM are both identity matricies that I multiply with…
Hamaro
  • 49
  • 9
0
votes
1 answer

Avoid open video file after playblast

I'm finishing a script that playblasts several pieces of animation into different movie files. It works fine but I'd like it to NOT open all the video files once it is done playblasting them. Can't find that option even inside maya playblast…
Mendel Reis
  • 55
  • 2
  • 14
0
votes
1 answer

Playblast query compression

I'm working on a custom playblast tool for Maya and I'm running into a little problem on how to query the available compressions for each format to perform the playblast. I can use: import pymel.core as pm availableFormats = pm.playblast(query =…
Mendel Reis
  • 55
  • 2
  • 14
0
votes
1 answer

Pymel: finding UV coordinates for specified face

In pymel what would be the best way to find the Uv coordinates of a specified face (in this case the face is a quad and has its UVs are layed out just for that face so it is only connected to 4 UVs) Thanks
ghost654
  • 161
  • 2
  • 18
0
votes
1 answer

PYMEL Maya UI crazyness

I'm having trouble with a script i judged simple, yet here I am! The thing is I have no real problem with the ACTUAL script, but with the Maya UI. It seems I can't avoid the creation of multiple windows, nor delete it using deleteUI("nemeOfUI").…
Mendel Reis
  • 55
  • 2
  • 14
0
votes
1 answer

Maya python FBX export?

I am trying to convert an .obj file to fbx with maya's python interpreter in a docker image. I have tried the following 3 commands and none seem to work. In the docker image I mayapy is the python interpreter and I am running my command like: mayapy…
luii
  • 319
  • 3
  • 5
  • 16
0
votes
0 answers

Pymel OpenMaya dependency?

Where can I get the Open dependency for pymel? I do not see anywhere in the docs where this is stated Traceback (most recent call last): File "test.py", line 1, in import pymel.core File…
luii
  • 319
  • 3
  • 5
  • 16