Go to: Synopsis. Return value. Keywords. Flags. Python examples.

Synopsis

resourceManager([nameFilter=string], [saveAs=[string, string]])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

resourceManager is NOT undoable, NOT queryable, and NOT editable.

List resources matching certain properties.

Return value

None

Keywords

resources, file

Flags

nameFilter, saveAs
Long name (short name) Argument types Properties
nameFilter(nf) string create
List only resources matching the name. Argument may contain ? and * characters.
saveAs(s) [string, string] create
Saves a copy of the resource (first parameter) as a separate file (second parameter).

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# List all resources starting with an "a"
cmds.resourceManager(nameFilter="a*")