good catch. i've changed it to only enable returnRootsOnly when you pass a dag object. this should be safe because duplicate does not allow you to mix dag and depend nodes.
-- http://groups.google.com/group/python_inside_maya
good catch. i've changed it to only enable returnRootsOnly when you pass a dag object. this should be safe because duplicate does not allow you to mix dag and depend nodes.
-- http://groups.google.com/group/python_inside_maya