Select groups in scene

import maya.cmds as mc
lsT
=mc.ls(type="transform")

Group
=[]
for i in lsT:
lsS
=mc.listRelatives(i,shapes=1)

if(not lsS):
if mc.nodeType(i)!="joint":
Group
+=[i]
for s in Group:
mc.select(s,add
=1)

 

posted @ 2011-02-23 09:24  GamePal  阅读(175)  评论(0编辑  收藏  举报