Skip to content

Instantly share code, notes, and snippets.

@fereria
Created February 25, 2014 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fereria/e5b5f5c65416e48a6b56 to your computer and use it in GitHub Desktop.
Save fereria/e5b5f5c65416e48a6b56 to your computer and use it in GitHub Desktop.
import pymel.core as pm
selNode = pm.ls(sl=True)
select = []
for sel in selNode:
select.append(sel.root())
select = list(set(select))
pm.select(select,r=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment