Created
October 4, 2013 05:50
-
-
Save robomojo/6821505 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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