Go to: Synopsis. Return value. Python examples.
saveAllShelves(
parentLayoutName
)
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
saveAllShelves is undoable, queryable, and editable.
This command writes all shelves that are immediate children of the specified control layout to the prefs directory.import maya.cmds as cmds
import maya.mel
gShelfTopLevel = maya.mel.eval('$tmpVar=$gShelfTopLevel')
cmds.saveAllShelves( gShelfTopLevel )