Heya
I'm struggling with loop to get some nodes from nodes from nodes etc etc etc
etc....
Can some1 have a look an hint me what to do ? :)
import maya.cmds as cmds
sel = cmds.ls(sl=1,mat=1)
for mats in sel:
nodes = cmds.listConnections(mats)
for connections in nodes:
print connections
I tried this method http://www.tutorialspoint.com/python/python_while_loop.htm
But I ended up with maya getting stuck on printing connections :)
How can I do it?
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.