pymel.core.language.resourceManager

static language.resourceManager(*args, **kwargs)

List resources matching certain properties.

Flags:
Long name (short name) Argument Types Properties
nameFilter (nf) unicode ../../../_images/create.gif
 
List only resources matching the name. Argument may contain ? and * characters.
saveAs (s) unicode, unicode ../../../_images/create.gif
 

Saves a copy of the resource (first parameter) as a separate file (second parameter). Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.resourceManager

Example:

import pymel.core as pm

# List all resources starting with an "a"
pm.resourceManager(nameFilter="a*")
# Result: [u'absolute.png', u'activeDeselectedAnimLayer.png', u'activeSelectedAnimLayer.png', u'addProxy.png', u'addTimeWarp.png', u'ai.png', u'aimConstraint.png', u'align.png', u'alignCurve.png', u'alignDist.png', u'alignMax.png', u'alignMid.png', u'alignMin.png', u'alignObjects.png', u'alignOnDist.png', u'alignOnMax.png', u'alignOnMid.png', u'alignOnMin.png', u'alignOnStack.png', u'alignStack.png', u'alignSurface.png', u'alignTool.png', u'alignUMax.png', u'alignUMin.png', u'alignVMax.png', u'alignVMin.png', u'angleDim.png', u'animateSnapshot.png', u'animateSweep.png', u'animPrefsWndIcon.png', u'animTurntable.png', u'annotation.png', u'appendCache.png', u'arcLengthDim.png', u'aselect.png', u'attachCurves.png', u'attachWithoutMoving.png', u'attributes.png', u'autoKeyframeOff.png', u'autoKeyframeOn.png', u'autoload.png', u'azimuthElevation.png'] #

Previous topic

pymel.core.language.pythonToMelCmd

Next topic

pymel.core.language.scriptJob

Core

Core Modules

Other Modules

This Page