Skip to content

Instantly share code, notes, and snippets.

@sivy
Created August 4, 2014 13:49
Show Gist options
  • Save sivy/17a3179a9e0dfbcf161f to your computer and use it in GitHub Desktop.
Save sivy/17a3179a9e0dfbcf161f to your computer and use it in GitHub Desktop.
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