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

Python script replacing objects with the cubes

I am trying to create a Python script to generate cubes in Maya which represent the object space bounding boxes of objects. For example, if I create random objects (sphere, cube, pyramid, cone, etc.) in Maya, I want to replace those selected…
user3059072
  • 61
  • 1
  • 2
5
votes
0 answers

how to use maya object in android?

Possible Duplicate: Rendering Maya animation on Android? want to use maya object in android. is there any tool & script which will help me to use maya object in android project so that I can render that object in maya & try out to develop simple…
user1206489
5
votes
3 answers

Converting a Maya scene to JavaScript or WebGL

I have some time and I'd like to convert a Maya scene to WebGL or render it to a canvas if possible without WebGL. The model is of a desk lamp consisting of primitives and meshes, I've parented parts to the joints instead of binding them to the…
dcd0181
  • 1,493
  • 4
  • 29
  • 52
5
votes
1 answer

GLSL 4.1 with gl_ModelViewProjectionMatrix

I am working on a glsl shader program as part of a plugin that runs inside a "closed source" application. The application (maya) is written using opengl 2.1, but our graphics cards support opengl/glsl 4.1 and I want to use tessellation and geometry…
atb
  • 1,412
  • 1
  • 14
  • 30
4
votes
1 answer

Determining the nature of 8 bytes of Data

Here's the context: I am working an a Maya Plugin. One of the features require me to Drag an element from the Outliner Window onto a UI element of my plugins UI. (Everything in Maya is in Qt) From the outliner, i can drag an item and drop it. For…
David Menard
  • 2,261
  • 3
  • 43
  • 67
4
votes
1 answer

import 3dsmax,maya to matlab

I think it is difficult to create a 3d model of a botanical tree in matlab so that I want to create the tree using software such as 3dsmax, maya, etc and then import it to matlab. My ultimate purpose is to access to the tree's pose data. My question…
John
  • 3,888
  • 11
  • 46
  • 84
4
votes
1 answer

Pickle: Reading a dictionary, EOFError

I recently found out about pickle, which is amazing. But it errors on me when used for my actual script, testing it with a one item dictionary it worked fine. My real script is thousands of lines of code storing various objects within maya into it.…
Jared
  • 537
  • 2
  • 6
  • 14
4
votes
1 answer

Python FBX SDK – How to enable auto-complete?

I am using Pycharm to code with Python FBX SDK, but I don't how to enable auto-complete. I have to look at the document for function members. It's very tedious. So, does anyone know how to enable auto-complete for Python FBX SDK in editor? Thanks!
LOOK2001
  • 55
  • 4
4
votes
3 answers

Maya – Why Print method can't be executed after Clear History command?

cmds.scriptEditorInfo(clearHistory=True) print("hi") The top line clear's the Maya Script Output window, and then the line below that is supposed to print hi. But when you run this, it flashes the hi output, and then clears everything. So the…
Frank
  • 2,109
  • 7
  • 25
  • 48
4
votes
1 answer

What exactly the cmds.scriptCtx in Maya Python does?

I'm wondering what exactly the cmds.scriptCtx command does, cuz I've tried to copy and paste it directly from the Autodesk help page to my script editor and nothing happened. Here's the script from Autodesk help: import maya.cmds as…
slovik
  • 67
  • 7
4
votes
1 answer

How to add a eventFilter in Maya

I'd like to create an drag'n drop functionality with a custom Qt Window and Maya. From what I could find the only solution is to add a eventFilter for a Maya Widget. So this is what I tried to test it: import maya.OpenMayaUI as omui from PySide2…
haggi krey
  • 1,885
  • 1
  • 7
  • 9
4
votes
2 answers

Proper PySide QThread use in Maya to avoid hard crash

I'm attempting to use QThreads to update my custom tool's Qt-based UI inside of Maya. I have a thread that executes arbitrary methods and returns the result via an emitted signal, which I then use to update my UI. Here's my custom QThread…
Viktor Petrov
  • 444
  • 4
  • 13
4
votes
2 answers

Eclipse environment for Maya's python modules

I'm trying to set up the Eclipse IDE to recognize the maya.cmds module, an all modules associated with the maya module. The following code are tests run in Eclipse, and Maya's script editor. import maya print 'maya:\n', dir(maya) from maya import…
T Carrasco
  • 463
  • 2
  • 6
  • 16
4
votes
2 answers

Running file on global variables

So this is a piece of the code: global episode = "Episode404" import testing reload (testing) #or python testing.py testing.py: def doIt(): print episode doIt() And this throws me # Error: invalid syntax # I'm guessing this is because I'm…
Jozef Plata
  • 350
  • 4
  • 11
4
votes
2 answers

For Loop to Duplicate objects in Maya — Python 2

I have been using Maya for over 5 years and now want to start writing scripts for specific actions I want to perform in maya, using python. I do have some experience scripting in JS. To briefly cover what I've already done: I wanted to create…
John Connor
  • 175
  • 1
  • 2
  • 7