Go to: Synopsis. Return value. Keywords. Python examples.
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
checkDefaultRenderGlobals is NOT undoable, queryable, and editable.To query whether or not the defaultRenderGlobals node has been modified since the last file save, use `ls -modified`. To force the scene to be dirty/clean use `file -modified`
In query mode, return type is based on queried flag.
import maya.cmds as cmds # cmds.checkDefaultRenderGlobals(q=1, changed=1) can be replaced with a call to the ls command # To check if the defaultRenderGlobals node is marked dirty or not, do this: if( 'defaultRenderGlobals' in cmds.ls(modified=1) ): # do something... pass # To mark the entire scene dirty. cmds.file( modified=1 ) # To mark the entire scene clean cmds.file( modified=0 )