Created
October 14, 2016 06:59
-
-
Save patwooky/b2d4875bd44d7f6ce12208e08ea4bd84 to your computer and use it in GitHub Desktop.
Gets the number of shapes in your selection. If a top level is selected, all the child shape nodes are calculated. Multiple selections are allowed.
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
''' | |
Gets the number of shapes in your selection. If a top level is selected, all the child shape nodes are calculated. | |
Multiple selections are allowed. | |
''' | |
from pymel.core import * | |
print '\n--\nselection has %i shape nodes\n--\n' % len(listRelatives(ls(sl=True), ad=True, type='shape')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment