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

Dockable window in Maya with PySide clean up

I created a tool that is able to dock in Maya's main ui, but I can't figure out a way to clean it up once it closes. The problem is if I create multiple instances of the tool then drag it in place to dock it, they will ALL show up when I right-click…
Green Cell
  • 4,677
  • 2
  • 18
  • 49
8
votes
2 answers

use external python script to open maya and run another script inside maya

Is it possible to call a script from the command prompt in windows (or bash in linux) to open Maya and then subsequently run a custom script (possibly changing each time its run) inside Maya? I am searching for something a bit more elegant than…
TheBeardedBerry
  • 1,636
  • 5
  • 20
  • 30
8
votes
2 answers

NameError: name '__main__' is not defined

I have been reading here, but I couldnt find any solution online to solve my problem..I think I have the indentation right, but I still get the Name Error..Can someone help me out please. This script should run a new panel in maya, which works kind…
arvidurs
  • 2,853
  • 4
  • 25
  • 36
7
votes
6 answers

Display 3dsmax models in web browser

I have some 3d models written in 3dmax/maya/cad/4dcinema , i wand to display them in my website so user can rotate the model and inspect it . i have found this on the internet http://replimat.com/thingiview/examples/client_side_ajax.html i think it…
Rami Dabain
  • 4,709
  • 12
  • 62
  • 106
7
votes
1 answer

3D artwork that is exported as USDZ has different colors

I want to start by saying that I am new to SceneKit and playing with AR environments on iOS. I have a 3D model object, a van, as part of a Blender file(.blend) --> it can be found here. I am exporting it as a .glb file from Blender --> it can be…
Laur Stefan
  • 1,519
  • 5
  • 23
  • 50
7
votes
5 answers

Need to create a list of sets, from a list of sets whose members may be connected

I'm dealing with polygonal data in realtime here, but the problems quite simple. I have a huge list containing thousands of sets of polygon Indecies (Integers) and I need to simplify the list as "fast" as possible into a list of sets of "connected"…
andySnooker
  • 71
  • 1
  • 1
  • 3
7
votes
1 answer

Accessing an ALREADY running process, with Python

Question: Is there a way, using Python, to access the stdout of a running process? This process has not been started by Python. Context: There is a program called mayabatch, that renders out images from 3D Maya scene files. If I were to run the…
kartikg3
  • 2,590
  • 1
  • 16
  • 23
7
votes
1 answer

How to create a DAE file to use in SceneKit?

How do you create a .dae file from a 3D model? I've created a 3D model from a drone areal mapping and now have a very large file I can import in to Photoshop, but I can't figure out how to create a .dae file I can use in SceneKit. The default game…
ricozinn
  • 131
  • 1
  • 8
7
votes
2 answers

How do I compile multiple py files as one?

I am new to Python and am totally lost as to where to even start to get this done. I have written many small modules (a toolset for maya) that need to be compiled into on single .pyc file. Is there a module that just does this? Or can you tell me…
user12294
  • 91
  • 1
  • 2
6
votes
5 answers

How to make a nested dictionary and dynamically append data

I have a loop giving me three variables matteGroup matteName object I would like to make a nested dicionary holding all the data like: dictionary{matteGroup: {matteName: obj1, obj2, ob3} } I am checking the objects one by one so I would like to…
nookie
  • 997
  • 2
  • 7
  • 8
6
votes
1 answer

Running unit tests with Nose inside a Python environment such as Autodesk Maya?

I'd like to start creating unit tests for my Maya scripts. These scripts must be run inside the Maya environment and rely on the maya.cmds module namespace. How can I run Nose tests from inside a running environment such as Maya?
Soviut
  • 88,194
  • 49
  • 192
  • 260
6
votes
1 answer

How can you edit a USDZ mesh that has been included in AR project?

How can you edit a usdz file and maintain the rigs that have been set inside of it? For example, I am trying to edit the robot.usdz mesh included in this example project -…
soCohesive
  • 593
  • 5
  • 10
6
votes
1 answer

Cannot view .dae file in Xcode

I export .dae file by Maya or 3dMax, copy this .dae file to xcode project, some time this file cannot view, I have to delete this file and export another file. When click on error file -> xcode show alert Unable to load …
Tulip
  • 63
  • 4
6
votes
2 answers

Conversion from USDZ file to glTF file

I am currently trying to work with AR in android but I have been given models in .usdz format. So far I have been looking for a way to convert this file into one that works with android (.fbx .obj .gltf), preferably being .gltf. Can someone tell me…
Sergio Pardo
  • 774
  • 6
  • 17
6
votes
3 answers

How to convert OBJ with MTL file to USDZ format

So I have an OBJ 3D model with its associated MTL file. The MTL file contains all the textures. However, when I convert the file to the USDZ format, the textures are not attributed to the file. This is the code I use. xcrun usdz_converter…
HeySaiK
  • 480
  • 1
  • 6
  • 17