Go to: Synopsis. Return value. Python examples.

Synopsis

saveAllShelves( string )

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

saveAllShelves is undoable, NOT queryable, and NOT editable.

This command writes all shelves that are immediate children of the specified control layout to the prefs directory.

Return value

booleanTrue if successful, otherwise issues an error message and returns false.

Python examples

import maya.cmds as cmds

import maya.mel
gShelfTopLevel = maya.mel.eval('$tmpVar=$gShelfTopLevel')
cmds.saveAllShelves( gShelfTopLevel )