Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cwisbg
- # Get highest Group
- """
- or s.root()
- """
- from pymel.core import *
- sl=selected()
- def getHiGrp(s):
- x = s
- hiGrp = []
- while x:
- x = listRelatives(x, p=1)
- hiGrp.append(x)
- if len(hiGrp) < 2:
- return s
- else:
- return hiGrp[-2]
- x = getHiGrp(sl[0])
Advertisement
Add Comment
Please, Sign In to add comment