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

rename result node based on parent node

I'm writing a script that duplicates curves from a selected mesh. Once it has created the curve, I want it to rename the result based on the name of the original mesh that it used to create the curve with a suffix. Eg.: 'meshName_Crv' or something…
Val
  • 11
  • 4
-1
votes
4 answers

list returned from recursive function always empty

Im trying to return a list from a recursive function, appending to this list for each depth, but the final returned list is always empty. I'm not very experienced pythonian so it might be a trivial mistake. Here's the code: import pymel.core as…
Elias Finoli
  • 121
  • 9
-1
votes
1 answer

Get text from FileDialog Python\Qt

I'm pretty new with Qt in Python, and I need to know how could I get from a file dialog one directory path and show it in a text box inside my ui. class ControllerLibraryUI(QtWidgets.QDialog): def __init__(self): …
-1
votes
1 answer

'exceptions.RuntimeError' - Object has no attribute 'errno'

I'm working with Maya 2018 and there's a weird thing going on. When I select multiple vertices, faces or edges I get: // Error: AttributeError: file line 88: 'exceptions.RuntimeError' object has no attribute 'errno' // // Warning: Python…
Mendel Reis
  • 55
  • 2
  • 14
-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 2 3
12
13