Maya python


#1

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.

  1. Where can i learn more about maya object model?

#2
  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


#3

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.