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
0
votes
3 answers

How can I create a desktop GUI application similar to Blender or Maya?

I would like to create a customized Graphical User Interface Window similar to Blender or Maya GUI window. Please refer this below image: How and where to begin with to design and create a customized GUI window similar to Maya / Blender UI window.…
Achiever
  • 1,626
  • 10
  • 30
  • 54
0
votes
2 answers

socket.recv is empty but the result is showing in Maya

I am trying to get values for the rotation of joints in Maya into an external IDE. I have successfully been able to send commands and Maya responds properly but I am having trouble understanding how to receive the results back in the IDE. I have…
Ben Gagnon
  • 11
  • 2
0
votes
1 answer

what is best way for convert maya py (python) to pyd?

what is best and easy way for convert maya py (python) to pyd ? I had explored in this field, but unfortunately none of them was effective and after convert to pyd I can't import my code into Maya.
0
votes
1 answer

maya.cmds Dialog to end script

I would like to end an entire script once an attribute has not been found. Currently, I have the following code. I display a dialog and use sys.exit() to end the script but I m wondering if there is a cmds dialog that does this automatically for you…
burned_fenrir
  • 138
  • 2
  • 13
0
votes
2 answers

How to measure the amount of time taken to do any kind of operation inside apps such as Maya, Creo Parametric, Adobe Premier, etc

I want to measure the amount of time taken to do any kind of operation inside apps such as Creo Parametric 5.0, Adobe Premiere Pro, Maya, Adobe Creative, Lightroom CC or any other design app The idea is to measure the performance (time taken per…
0
votes
1 answer

Maya's dnoise function: What does it do and how do I implement it?

I need to write a C++ implementation of the dnoise function from Maya. However, the documentation for this function is woefully inadequate for describing what this function actually does from an implementation perspective. So, what does this…
camomilk
  • 763
  • 1
  • 7
  • 15
0
votes
1 answer

MDataHandle.setFloat() isn't changing Plug value

Using the Maya Python API 2.0, I'm trying to make a callback that changes the value of a plug. However, none of the methods I've tried are working. I've tried using the MPlug.setFloat() method, but this didn't lead to expected results; I found no…
0
votes
2 answers

Maya – How to automate the set driven keys using Python?

I wanted to create an set driven key relationship in such a way that if one object visibility is set to ON all remaining objects in the set should turn off . For example there are 5 switches in my scene where I need the other four switches to turn…
0
votes
3 answers

How to fix an undefined method in a simple class in Python for maya script?

To get a better understanding of how classes are called and work, I have been trying to take a handful of functions that have been working for me in a simple script I have written that snaps one object to another in 3D space in maya. When I put…
0
votes
2 answers

How create a list colorSets, access them and delete them in Maya?

I am trying to list colorSet names in order to control how many of them I have on a given mesh. I can't seem to pass the right variable to the cmds.ls for it to recognize colorSet I've read around and it seems like mostly cmds.ls is used for meshes…
boomstick
  • 53
  • 1
  • 9
0
votes
1 answer

How to use a slider value in calculations?

I have a piece of code which generates noise. The noise is generated inside a 0.0 to 1.0 range. As long as I set a defined number the code works. If I were to allow users to select maximum range for the number with a slider it stops working. I have…
boomstick
  • 53
  • 1
  • 9
0
votes
1 answer

How to spawn a random polygon primitive with random number of subdivisions?

I am trying to spawn a random polygon primitive with a random number of subdivisions each time. If my limited knowledge is correct I can't just spawn a random mesh. I would need to collect all types of meshes I could spawn into an array of numbers…
boomstick
  • 53
  • 1
  • 9
0
votes
1 answer

What Python command allows us export Maya model to USDA file format?

Recently Pixar released a plugin for working with USDA file format in Maya. Also there's a USD API. With this API is easy to create a usdPrimitives: from pxr import Usd, UsdGeom stage = Usd.Stage.CreateNew('HelloWorld.usda') xformPrim =…
Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
0
votes
0 answers

How do you use the maxDistance flag in OpenMaya.MMeshIntersector.getClosestPoint

I'm trying to find the closest point on a mesh using the OpenMaya MMeshIntersector class but I want to limit the distance it searches. I'm using this so I can get the barycentricCoords to get a more accurate value. Whenever I enter in a value to…
dege
  • 65
  • 9
0
votes
1 answer

Can I create a custom Maya node with an image attribute?

I'm trying to write a custom Maya node in Python. Some of the inputs to my node algorithm are images (like height maps). Is there a way to create an image node attribute (whether input or output)? Right now I'm just using the filenames of the images…
1 2 3
99
100