Provides an interface to the auto-save mechanism. In query mode, return type is based on queried flag.
Flags:
Long Name / Short Name | Argument Types | Properties | |
---|---|---|---|
destination / dst | int | ![]() ![]() |
|
Sets the option for where auto-save files go. 0 - auto-saves go into the workspace autosave folder 1 - auto-saves go into the named folder (set with the -folder flag) 2 - auto-saves go into a folder set by an environment variable (MAYA_AUTOSAVE_FOLDER) |
|||
destinationFolder / df | bool | ![]() |
|
Queries the actual destination folder for auto-saves, based on the current setting of the -destination flag, workspace rules and environment variables. Resolves environment variables etc. and makes any relative path absolute (resolved relative to the workspace root). The returned string will end with a trailing separator (‘/’). Flag can have multiple arguments, passed either as a tuple or a list. |
|||
enable / en | bool | ![]() ![]() |
|
|
|||
folder / fol | unicode | ![]() ![]() |
|
|
|||
interval / int | float | ![]() ![]() |
|
|
|||
limitBackups / lim | bool | ![]() ![]() |
|
|
|||
maxBackups / max | int | ![]() ![]() |
|
|
|||
perform / p | bool | ![]() |
|
|
|||
prompt / prm | bool | ![]() ![]() |
|
|
Derived from mel command maya.cmds.autoSave
Example:
import pymel.core as pm
# set the interval between auto-saves to 5 minutes
#
pm.autoSave( int=300 )
# query the auto-save interval
#
pm.autoSave( q=True, int=True )
# Result: 300.0 #