Your Ad Here

Go to: Synopsis. Return value. Python examples.

Synopsis

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.

Return value


True 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 )

  

Return to Autodesk Index


Your Ad Here