> Guys did you know that simple: > sel = mc.ls(sl=1) > > ~ 2 times slowest than > > sl=[] > selList = api2.MGlobal.getActiveSelectionList() > for i in range(selList.length()): > fn.setObject( selList.getDependNode(i) ) > sl.append( fn.name() )
that's good to know, but not entirely surprising. try finding nodes by name glob and node type(s) and be sure to support dag nodes. be sure to also test with a custom type (like a mental ray shader) which does not have an enumerator. ls has a lot of capabilities, and supporting even half of them will cut into that 2x speed increase. -chad -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
