Created
August 4, 2014 13:49
-
-
Save sivy/17a3179a9e0dfbcf161f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from pymel.core.general import itemFilter | |
types = maya.gimmeAllObjectTypes() | |
defaultNamedObjects = [] | |
for t in types: | |
objs = listFilter(byName=t.name+'*') | |
if objs: | |
defaultNamedObjects += objs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment