Hi everyone!
Im starting to write scripts in python within maya and Im running into an 
issue. Im trying to get the list to select the top dependency node of all 
geometry in the scene.  I get this list by having the list focus on the 
transforms but that is also pulling in transforms in on the cameras and 
lights.  I want it to run execute similarly to selecting geometry in 
outliner and duplicating it.  As of right now I have a list of all the 
geometry

allMeshes2 = cmds.ls(geometry=True)

Then in the for loop I have a pickWalk before duplicating it. 
cmds.pickWalk(direction= "up")

Is there anyway to just have the ls select that object from the outliner? 
Thanks!

Glenn

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to