And just to add to thread for record... the API 1.0 approach for
anyone not using Maya 2012+
(which is just slightly slower than API2.0, but still faster than
cmds.ls(sl=True))
sl=[]
fn = om.MFnDependencyNode()
obj = om.MObject()
selList = om.MSelectionList()
om.MGlobal.getActiveSelectionList(selList)
selIter = om.MItSelectionList(selList)
while not selIter.isDone():
selIter.getDependNode(obj)
fn.setObject(obj)
sl.append(fn.name())
selIter.next()
On Thu, Oct 4, 2012 at 9:02 AM, vux <[email protected]> wrote:
> and also dont use getSelectionStrings method. It slowest than manualy
> created list
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe