Created
February 24, 2015 14:48
-
-
Save mclavan/e4024491ec2ff9350f01 to your computer and use it in GitHub Desktop.
Get Control Icons
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 | |
current_transforms = pm.ls(selection=True, dag=True, type='transform') | |
controls = [] | |
for transform_node in current_transforms: | |
if transform_node.getShapes(): | |
controls.append(transform_node) | |
print 'You got {0} controls'.format(controls) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment