ジャンプ先: 概要. 戻り値. キーワード. Python 例.

概要

checkDefaultRenderGlobals([string])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

checkDefaultRenderGlobals は、取り消し不可能、照会可能、および編集可能です。

最後にファイルを保存してから defaultRenderGlobals ノードが変更されたかどうかを照会するには、`ls -modified` を使用します。シーンを強制的にダーティまたはクリーンにするには、`file -modified` を使用します。

戻り値

なし

照会モードでは、戻り値のタイプは照会されたフラグに基づきます。

キーワード

checkDefaultRenderGlobals, registration

Python 例

import maya.cmds as cmds

# cmds.checkDefaultRenderGlobals(q=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 )