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
4 answers

Python - Re-Implementing __setattr__ with super

I know this one has been covered before, and perhaps isn't the most pythonic way of constructing a class, but I have a lot of different maya node classes with a lot @properties for retrieving/setting node data, and I want to see if procedurally…
Pax
  • 237
  • 3
  • 11
4
votes
2 answers

Importing models from Maya to OpenGL with c#

How do I import Maya model to OpenGL with C#? If you have any sample, it would be very useful.
Meysam Javadi
  • 1,374
  • 1
  • 10
  • 21
4
votes
1 answer

How do I safely add menuItems to an existing menu in Maya MEL

I tried adding menu items to an existing menu in Maya using MEL Example: menuItem -label "Mylabel" -insertAfter "someEntry" -parent $gMainFileMenu; menuItem -label "Mylabel2" -insertAfter "someEntry" -parent $gMainFileMenu; The issue is that the…
Hugo Dozois
  • 8,147
  • 12
  • 54
  • 58
4
votes
3 answers

Querying of a point is within a mesh maya python api

I'm trying to figure out a way of calculating if a world space point is inside of an arbitrary mesh. I'm not quite sure of the math on how to calculate it if it's not a cube or sphere. Any help would be great!
chribis
  • 277
  • 7
  • 26
4
votes
1 answer

Maya: Deleting node doesn't call destructor directly

I have a small problem with a custom node I created in Maya. If I do something like: createNode -n "MyInstance" "MyNode"; delete "MyInstance"; It doesn't call the class destructor. But, if you do a new scene, open a new file, or do anything that…
widgg
  • 1,358
  • 2
  • 16
  • 35
4
votes
2 answers

C++ include issue

I am writing a plugin for Autodesk Maya using C++ and have a linker error. My main class is Maya_Search_Plugin.cpp #include DeclareSimpleCommand( search_face, PLUGIN_COMPANY, "4.5"); //doIt method is entry point for plugin MStatus…
shaw2thefloor
  • 600
  • 5
  • 20
4
votes
1 answer

Get vertex as single array

I need to get all the selected vertices and store them in an array so I can loop through and find out information about each vert. Although I cannot figure this out. sel = cmds.ls(sl=1) print sel Returns: //[u'pCube1.vtx[50:53]',…
Shannon Hochkins
  • 11,763
  • 15
  • 62
  • 95
4
votes
0 answers

DGSL (Directed Graph Shader Language) editor in Visual Studio 2012

I'm using the DGSL (Directed Graph Shader Language) editor in VS 2012 to create shader that I wish to export to HLSL and then load in MAYA http://msdn.microsoft.com/en-us/library/hh315733.aspx At this stage I cannot for the life of me figure out to…
Jamie
  • 271
  • 1
  • 2
  • 11
3
votes
1 answer

Can I use the same animation model on multiple 3D characters in Unity3D?

I am creating a game in Unity3D. My character animation is in the form of stickman animation files but can be either Maya or Cinema4D. Is it possible to have multiple 3D characters and swap between them in game - however, use the same stickman…
Jon Winstanley
  • 23,010
  • 22
  • 73
  • 116
3
votes
3 answers

Rendering Maya animation on Android?

I've been able to import 3D models from Maya into OBJ files, which in turn, are read by my Android app. This model can now be displayed and I can apply transformations on them as well, even on high-polygon count objects, which is nice. The next step…
Bob
  • 111
  • 1
  • 4
3
votes
1 answer

Python 3 installation for Maya 2019 or higher

Is there a way of installing python 3 in Maya 2019 or higher versions? I know there's some information about this on some forums but I still hope for a positive answer:))
galaxy
  • 53
  • 1
  • 1
  • 15
3
votes
1 answer

Why character's face automatically converts into green in Xcode?

I am using Autodesk Maya for creating models and animations of this character. This character appears and animates perfectly on all other platforms like Unity, 3dsMax, etc. but when I import .dae file in Xcode the face of the character appears green…
3
votes
2 answers

Maya's ShrinkWrap deformer

I am trying to perform the ShrinkWrap deformer on two 3D models to be able later on to perform the morph from one model to another . When i apply the function i did , when i manipulate the offset value or the target inflation it doesn't give me the…
john wick
  • 31
  • 2
3
votes
2 answers

Maya Python scale picture

How to scale a picture to fit a window/layout? With the code below the original image is not actually enlarged to 300px, it is displayed with the original image size instead. import maya.cmds as cmds if (cmds.window(window1, exists=True)): …
Jim
  • 89
  • 8
3
votes
1 answer

How to create texture to overlay on Augmented Face mesh?

I am working on an AR application using ARCore and Sceneform. I want to add texture to face landmarks like nose, lips, face and eyes. I want to know how to create texture so that I can overlay it on Augmented Face mesh? Texture.builder() …
Preethi
  • 41
  • 5