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

Convert .fbx to .obj with Python FBX SDK

I have a ten frame .fbx file of an animal walking. This file includes a rigged model with textures, but I am only interested in the mesh of the model at each frame. How can I use Python FBX SDK or Python Blender SDK to export each frame of the…
pcpetepete
  • 65
  • 2
  • 6
3
votes
1 answer

Assign multiple shaders to imported .OBJ files in Maya

I need to import multiple files into Maya and assign multiple materials to each one. I have the following code in Python: import maya.cmds as cmds import glob def importFile(i): cmds.file(i, i=True, groupReference=True, groupName="myobj") def…
jpits
  • 41
  • 8
3
votes
1 answer

How to reference maya commands in PyCharm?

I am trying to get pycharm (latest community edition) working with maya 2015. And the very first thing I need is to be able to reference maya commands module, but I don't seem to be able to find how. import maya.cmds as cmds fails with ImportError:…
Paul
  • 1,879
  • 1
  • 23
  • 44
3
votes
3 answers

python version for maya and other 3d apps

I have a couple small projects that I want to use to learn python. What version should I be using if I want to move to scripting for Maya, Blender, etc later? Also, what resources are there for scripting for those programs?
jhultgre
  • 122
  • 1
  • 7
3
votes
2 answers

How can I get 3D object dimensions in ThreeJS?

I'm developing an AR application using WebRTC (webcam access), JSARToolKit (marker detection) and threeJS (3D library). I want to place 3D objects (exported from Maya using threejs maya exporter) in the center of the detected marker. This is the…
Vig
  • 143
  • 6
  • 13
3
votes
2 answers

Can I pm.playblast from within mayabatch?

I am trying to playblast multiple Maya scenes in a folder, without bringing up the Maya GUI. I have successfully invoked a headless Maya instance with mayabatch.exe That instance calls a script that crawls a folder Each scene is opened But I cannot…
lofidevops
  • 15,528
  • 14
  • 79
  • 119
3
votes
2 answers

Why can't I copy-paste from PyCharm into Maya Script Editor?

I can copy-paste code from Notepad++ into Maya Script Editor, and from MSE into Notepad++. I can copy-paste from MSE into PyCharm. But I can't paste from PyCharm into MSE, even if I "Copy as Plain Text". Why not, and how can I achieve this?
lofidevops
  • 15,528
  • 14
  • 79
  • 119
3
votes
2 answers

PyQt button click area (Non rectangular area)

I was working on a PySide interface for Maya and i was wondering if its possible to define a NON RECTANGULAR clickeable area for a button. I tried using QPushButton and also extending a QLabel object to get button behavior but do you know if its…
Ramiro Tell
  • 121
  • 7
3
votes
1 answer

Export Maya scene to Three.js

Is there any way to export the whole scene from Maya to Three.js. Exported elements should be: all mesh, textures, cameras, including the lights, shadows etc. So that I can get the proper rendered effect that is been in the maya.
ArUn
  • 1,317
  • 2
  • 23
  • 39
3
votes
1 answer

What is the difference between the Python type method and the type function on a Maya Transform Node?

Question in title Example code: >>> j.type() u'joint' >>> type(j)
shfury
  • 389
  • 1
  • 5
  • 15
3
votes
1 answer

maya python memory flush?

I am running a maya python script that runs through the scene and reduces the polygon count of a mesh object if it is above a certain range. This runs fine on a small scene, but when I run it on thousands of mesh objects, the memory use of my…
anti
  • 3,011
  • 7
  • 36
  • 86
3
votes
2 answers

Trying to retrieve the active monitor ID in Python

I was trying to retrieve the monitor ID in Python 2.7 via Maya. I was toying with ctypes as I couldn't find the right support in Python. The idea is to retrieve an ID for the user's current monitor(in a multiple monitor environment), and parse the…
Capt. Solo
  • 31
  • 1
  • 3
3
votes
2 answers

Testing if an object is dependent to another object

Is there a way to check if an object is dependent via parenting, constraints, or connections to another object? I would like to do this check prior to parenting an object to see if it would cause dependency cycles or not. I remember 3DsMax had a…
Green Cell
  • 4,677
  • 2
  • 18
  • 49
3
votes
2 answers

How do i append to the Maya PYTHONPATH?

I am working through Practical Maya Programming, and trying to set a 'development root' on my PC, I have followed the instructions (below) exactly but it is not working - At the point where I type 'mayapy.exe' I get the warning "'mayapy.exe' is not…
shfury
  • 389
  • 1
  • 5
  • 15
3
votes
1 answer

Maya/Python: How do I scale multiple selected animation curves each from their own specific pivot point?

I'm trying to do a scale operation of multiple animation curves, each using its lowest key as the pivot point. I am thinking it should be a nested for loop structure but have not been able to get it working properly. The scaling is simple,…
isticism
  • 95
  • 7