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

run maya from python shell

So I have hundreds of maya files that have to be run with one script. So I was thinking why do I even have to bother opening maya, I should be able to do it from python shell (not the python shell in maya, python shell in windows) So the idea…
Jozef Plata
  • 350
  • 4
  • 11
4
votes
1 answer

Open a .ma file (ASCII) in Maya with Python?

I'm trying to open a maya scene .ma at the end of a Python script, the path looks like that: G:\ProjectPath\Scene.ma. But the only command I know for this is MEL command: file -f -options "v=0; p=17; f=0" -ignoreVersion -typ "mayaAscii" -o…
Gnn
  • 107
  • 1
  • 2
  • 7
4
votes
1 answer

How to get the name of a selected Object Python Maya

Hei all, I have this procedural program that creates different object in Maya through Python. After the creation of these elements I want to get the user the possibility to select some of these object and though a button to delete it...The problem…
Stefano Feltre
  • 71
  • 1
  • 4
  • 10
4
votes
2 answers

PyQt5 Maya 2017

Having some trouble setting up PyQt5 with Maya 2017. I have successfully installed PyQt5 on my mac and I can write standalone applications, but when I try to import PyQt5 modules in the Maya Script Editor using (for example) from PyQt5 import…
green.mango
  • 201
  • 1
  • 4
  • 9
4
votes
2 answers

Importing animated 3D models in JavaFX

I am currently working on creating a 3D scene using JavaFX. In the scene I would like to show some more complex 3D models. I, therefore, used the InteractiveMesh importers for importing some OBJ/STL models, which worked fine. I would also like to…
Alex
  • 41
  • 1
  • 4
4
votes
8 answers

Find centre point in autodesk maya

how to find the centre point in autodesk maya...I know use the centre pivot but i can't find the point..how to find the exact coordinate of the 3d object created using autodesk maya? thanks.
Susan
  • 91
  • 1
  • 2
  • 6
4
votes
4 answers

3D triangulation algorithm

Does anybody know what triangulation algorithm Maya uses? Lacking that, what would be the most probable algoritms to try? I tried a few simple off the top of my head (shortest/longest resulting edges, smallest minimum angle, smallest/biggest area),…
Jonas Byström
  • 25,316
  • 23
  • 100
  • 147
4
votes
3 answers

Same python code works differently on differently Maya (2012 - 2015)

this simple code import maya.cmds as cmd circle1 = cmd.circle(nr=(0, 0, 1), c=(0, -1.1, 0), ch=1) circle2 = cmd.duplicate(circle1[0], ic=1) circle3 = cmd.duplicate(circle1[0], ic=1) cmd.setAttr(circle2[0] + '.rotateZ', 120) cmd.setAttr(circle3[0] +…
Ale_32
  • 648
  • 1
  • 6
  • 16
4
votes
1 answer

Pythonic way to dynamically add properties and setters

I'm working on a library for a 3D application that wraps the application's functionality into a set of Python classes, as well as adding additional functionality that the application doesn't have. I have a set of properties in my base class to add…
David
  • 146
  • 1
  • 3
  • 11
4
votes
2 answers

Aliasing in the names of function arguments (double naming)

Are the functions able to have double names for their arguments in Python? I mean a short and full form of the variable name. I'll try to be more clear. Everybody who is familiar with Autodesk Maya knows a function to make constraints. It has some…
Michael
  • 340
  • 3
  • 13
4
votes
3 answers

MAYA Python: getting the position of selected object using getAttr

I am trying to make a simple "allign tool" in maya using Python script, and this is how far I got import maya.cmds as cmds selected = cmds.ls(selection=True) for all in selected: cmds.getAttr('Cube.translateX') And this seems to get the…
Chico Spans
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

Deploying Python modules for 3D software

I have been developing a fairly extensive library of python modules that automate the more time consuming parts of "3D character development" for games/film/tv. All of my code up until a few months ago has been run within Maya's dedicated python…
Pax
  • 237
  • 3
  • 11
4
votes
3 answers

How to isolate group nodes in maya with python

I have a selection that can reasonably contain most any node type. In python I need to filter out everything except the group nodes. The problem is that group nodes are read by maya as just transform nodes so its proving difficult to filter them out…
TheBeardedBerry
  • 1,636
  • 5
  • 20
  • 30
4
votes
2 answers

How to run pycharm unittests when standard lib is zipped?

I've been trying to port a Maya based python project over to PyCharm but I'm having trouble running unit tests. Maya provides its own python interpreter (mayapy.exe) with a zipped version of the python stdlib (in this case, 'Python27.zip') AFAIK…
theodox
  • 12,028
  • 3
  • 23
  • 36
4
votes
1 answer

PySide QTreeWidget clear() causes crash

First of I am new to python and pyside. I have three different QTreeWidgets, representing three different folder structures. When I try to clear them all three in a row the application crashes. widgets = [ self.Delete_treeWidget01,…
Jerakin
  • 455
  • 3
  • 17