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

Create 3D globe of Earth with one polygon for each country

I am creating a 3D sphere of the Earth for Unity and I need to have one polygon for each country. Each country has a set of 2D points which are proyected into 3D points based on proyection. But when I create the polygon some vertices are joining…
patilanz
  • 13
  • 1
  • 4
0
votes
1 answer

3ds max Autodesk materials not rendering

Im having a trouble with rendering materials from Autodesk material library (Im obliged to use this library), materials render incorrectly, can`t get whether it is scaling issue or render engine is not rendering these materials correct. For…
GeekyNuns
  • 287
  • 2
  • 20
0
votes
1 answer

MItSurfaceCV, how to get Indices?

I'm trying to get the SurfaceCV indices from a NurbsSurface. When I use the MItSurfaceCV class I get too few indices. My Code till now, with a NurbsSphere selected: sel = om.MSelectionList() om.MGlobal.getActiveSelectionList(sel, 0) dg =…
FzudemAA
  • 3
  • 4
0
votes
1 answer

Multiple arguments in a function. Passing info through functions. - '' not found'

# Error: RuntimeError: file line 13: Object '' not found. # I am working on a script to create uv snapshots. Currently, I'm stuck on getting "save_snapshots" to get the integer that…
0
votes
1 answer

right click a shelf button in Maya to launch a different script

I was wondering if it is possible to launch a different script in Maya when right clicking on a custom shelf button verses a left click. So a traditional left click of the button would launch one version of the script, but a right click ( or some…
winteralfs
  • 459
  • 6
  • 25
0
votes
2 answers

Undeclared variables in Maya 2011, using MEL

Coming from a Java/C# background, the MEL site came as a bit of a letdown to me, maybe because I wasn't used to it, but didn't think it was as clear as some API sites. I'm trying to write a MEL command to automate my save-as, rename file, save…
ataulm
  • 15,195
  • 7
  • 50
  • 92
0
votes
1 answer

How to use static library in a solution with configuration type set to dynamic link library?

I have created two solutions with visual studio. I compile the first as a static lib. I want to use that lib in the second solution which is a plugin for maya. For the second solution I started from the hello world template file Autodesk provides…
dd95
  • 239
  • 2
  • 16
0
votes
2 answers

Maya Pyside2 UI, couldn't get QPushButton to connect with function within the same class

I am trying to write a UI with Pyside2 for maya, but for some reason I could not connect QPushButton with the function within the same class. In this case I wrote a simple UI with 1 button to trigger template_btnCmd within the same class. Thank…
0
votes
1 answer

How do I use arguments?

I'm trying to select multiple curve cvs these are my function's codes this is setArg Func: import maya.cmds as mc from functools import partial def setArg(CTS, option, *args): option = mc.radioButtonGrp(CTS, q=True, select=True) if option…
HFD
  • 9
  • 1
0
votes
2 answers

How to add selected objects to renderLayerSetup in Maya 2017 with Python?

I'm trying to make a Python code to render only selected objects in Maya, and want to know how to add selected objects to renderLayerSetup in Maya 2017 ? I've tried to use some code I found import maya.app.renderSetup.model.renderSetup as…
0
votes
1 answer

Need help applying shader to selected object in scene (Maya)

I am creating a shader from a file selection and need to apply the shader to any single object that I select in the scene. I commented out the grouping in the full tool shown down below. The problem is in the def apply_texture() This was my old…
Kudos
  • 3
  • 2
0
votes
1 answer

why am i getting an object invalid error?

I think there is something wrong with my naming convention but I'm not sure how to fix it. it keeps giving me an invalid object even when tried to name it based on the vertex please help. for i in range(1,100): print i def cactus(): #creating…
user11433809
0
votes
0 answers

What would be an event to use with a Maya scriptJob command so it tracks when an object is added or removed froma render layer?

I have a script that needs to update its GUI when an object is added or removed from a render layer. Right now, I can not find an event to trigger the GUI update using a scriptJob. What would be a good event to use?
winteralfs
  • 459
  • 6
  • 25
0
votes
1 answer

Create shader from file selection and apply to selected object

You select a folder with a bunch of images, select the one you wish to use from a dropdown menu, then select your object and hit apply. My issue is that I cannot do this to multiple objects in a scene, it only changes the material on the first…
Kudos
  • 3
  • 2
0
votes
1 answer

Python PIL missing import and DLL problems

When trying to install pillow to manage images in python I'm getting problems. First Maya didn't recognice I had PIL installed, kinda solved it copy pasting the PIL folder from C:\Python27\Lib\site-packages into C:\Program…
Dodrine
  • 23
  • 5
1 2 3
99
100