PDA

View Full Version : Maya python


vigneshwarv3d
12-02-2011, 10:15 AM
how do i print out all the dag nodes in maya and their parameters of it

I have used
import maya.cmds as cmds
cmds.ls("type=dag")

1)is this correct? or is there any other way to print out all the dag nodes and their parameters.

2) Where can i learn more about maya object model?

theyoda3
12-03-2011, 09:33 PM
1) Start with reading the manual and help documentation:
http://download.autodesk.com/global/docs/maya2012/en_us/index.html
http://download.autodesk.com/global/docs/maya2012/en_us/CommandsPython/index.html
http://download.autodesk.com/global/docs/maya2012/en_us/Nodes/index.html

2) You also might want to try these books:
http://www.amazon.com/Complete-Maya-Programming-Extensive-Kaufmann/dp/1558608354/ref=sr_1_3?ie=UTF8&qid=1322947804&sr=8-3
http://www.amazon.com/Maya-Python-Games-Film-Reference/dp/0123785782/ref=sr_1_1?ie=UTF8&qid=1322947804&sr=8-1

3) For your question about DAG nodes and their parameters you should look up how to use the following commands:
print
ls
attributeInfo
getAttr

CGTalk Moderation
12-03-2011, 09:33 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.