Skip to content

Instantly share code, notes, and snippets.

@robomojo
Created October 4, 2013 05:50
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 robomojo/6821505 to your computer and use it in GitHub Desktop.
Save robomojo/6821505 to your computer and use it in GitHub Desktop.
import pymel.core as pm
def quickSelect(search):
nodes = pm.ls(type=pm.nodetypes.Transform)
pm.select(clear=True)
for each in nodes:
for subeach in search:
if subeach == each.name().replace(':','|').split('|')[-1]:
pm.select(each,add=True)
quickSelect(['somename'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment