Questions tagged [maya]

Autodesk Maya is a 3D modeling, animation and rendering tool used in film, TV and advertising. Only programming questions are on-topic.

Autodesk Maya is a cross-platform 3D modeling, animation and rendering tool used by many entertainment companies in film, TV and advertising.

Scripting in Maya can be done in either or . Tree Python APIs are included: maya.cmds, and maya.api for a more core-level access to the Maya behaviour.

Non-programming questions should not be posted to Stack Overflow.

Documentation

To access all the documentation for the different Maya versions: https://knowledge.autodesk.com/support/maya/getting-started/caas/simplecontent/content/maya-documentation.html

2561 questions
3
votes
1 answer

Maya Python: rename duplicated joint children

So as I continue building my auto rigging script I've run into the second out of three problems I anticipated would be difficult to solve. This is probably a really simple answer: but the script itself is very easy to use, first hit generate proxy…
Dasteel
  • 101
  • 18
3
votes
1 answer

Can I import tensorflow and keras in Maya , Blender

I am participating in a workshop , where we need to automatically rig characters . Perhaps , we will use deep learning methods . The task is to recognize body parts . My question : Is there a way for connecting tensorflow and keras , or other neural…
3
votes
1 answer

PyQt 5: How to maintain relative widget size when expanding a window

I'm working on a custom ui in Maya 2018 which uses PyQt5 (via PySide2 - there are some minimal differences, but it's essentially PyQt5). I've got a QHBoxLayout with two widgets in it and their sizing policies are both set to 'expanding'. I set the…
silent_sight
  • 492
  • 1
  • 8
  • 16
3
votes
1 answer

Why are my QThreads consistently crashing Maya?

I have a UI that I am wanting to use threading with inside of Maya. The reason for doing this is so I can run Maya.cmds without hanging/freezing the UI while updating the UI with progress bars, etc. I have read a few examples from StackOverflow but…
3
votes
2 answers

Maya – Select objects in viewport via Python

Can anyone help me? Is it possible to make a script with Python to automatically select every object in Maya's viewport? Is it possible?
3
votes
1 answer

How to get the JobID from Deadline using a Python script

Is there any way to get the Job Id from Deadline. I am scripting the process of submitting a job from Maya to Deadline without using the GUI. I need the JobId in order to create a folder in the repository to save the Maya Scene File when submitted.…
3
votes
2 answers

Python : export keyframe from maya in line

I am trying to make a script that writes all the desired parameters in a line, not in row, to make a pipe to nuke (keyframe in line) to be valid in nuke, Keyframe need to be like this translate {{curve R x1 list of valueX}} {curve R x1 list of…
William Eguienta
  • 135
  • 1
  • 13
3
votes
4 answers

Getting a Maya Model into the iPhone

What is the best way to do this? Googling has shown me a bunch of ways, but what is the current best? I'd be happy enough to just get the model exported from Maya and rendered on the iPhone screen, but I'd be stoked if there was a way to render it,…
Josh
  • 12,448
  • 10
  • 74
  • 118
3
votes
1 answer

how to store a maya nodes hierarchy into a python dictionary

Click here for view the example picture I need to get the hierarchy Data or store it into a dictionary from the outliner panel from Maya in the right order, how can i archive this ? , im working in autodesk maya and only can be store into a dict for…
Nestor Colt
  • 379
  • 4
  • 18
3
votes
1 answer

Operation time limit

is there a way to time limit the oparations in python, eg: try: cmds.file( file, o=1, pmt=0 ) except: print "Sorry, run out of time" pass
Jozef Plata
  • 350
  • 4
  • 11
3
votes
2 answers

Snapping an object to another object vertex in Maya over Python Script

I want to snap / align an object A to vertex of object B. I have tried using below script but its not snapping exactly to the vertex but snapping with an offset. Can any one suggest me a solution. Here are the snapshots. import maya.cmds as…
Rao
  • 2,902
  • 14
  • 52
  • 70
3
votes
1 answer

Remove Menu Item in Maya using Python

How can I remove the menu item from the main window using Python? I have it working using MEL but I need it in Python as well. The part that isn't working is the find menu if exists and delete. I can't seem to find the equivalent in Python. Python…
JokerMartini
  • 5,674
  • 9
  • 83
  • 193
3
votes
2 answers

Assign cluster to each shell in an object - Maya Python

I'm quite a noob in Python. I can write a simple script to assign a cluster to vertexes of the selected objects. Like this: import maya.cmds as cmds activeSelection = cmds.ls(selection=True) for i in activeSelection: …
3
votes
1 answer

"Module use of python34.dll conflicts with this version of Python"

My knowledge of Python is still pretty basic, and I am only now trying to wrap my head around how to use / call libraries from within Maya. (Because I need to create a basic UI from QT Designer and have it be opened in Maya after converting it to a…
Gogo
  • 53
  • 1
  • 2
  • 8
3
votes
1 answer

Reload a whole package structure in Python

I'm working within Maya. What i need is to import a custom package and completely reload it inlcuding all subpackages and modules. Mainly because i want Maya autocompletes for me the module path while im writing. For example i have this kind of…
Ramiro Tell
  • 121
  • 7