ジャンプ先: 概要. 戻り値. 関連. フラグ. MEL 例.
refresh [-currentView] [-force] [-suspend boolean]
refresh は、取り消し可能、照会不可能、および編集不可能です。
スクリプトの実行中、強制的に再描画するときに使用します。通常の場合、スクリプトの実行中は再描画を保留しますが、画面からイメージを取り込むなどの目的で、中間結果を表示するために再描画を使用することがあります。-cv フラグを指定すると、現在アクティブなビューのみが再描画されます。
なし
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
---|---|---|---|---|
-currentView(-cv)
|
|
![]() |
||
|
||||
-force(-f)
|
|
![]() |
||
|
||||
-suspend(-su)
|
boolean
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
refresh; // The refresh command can also be used to take a snapshot of the current scene view and // save it as an image file. See example below. // Set up workspace for images in current project string $ws=`workspace -q -fullName`; string $wsp=$ws + "/images"; sysFile -makeDir $wsp; // Prepare unique image name for snapshot string $imageSnapshot = $wsp + "/endSnapshot.jpg"; // Take a snapshot of the viewport and save to file refresh -cv -fe "jpg" -fn $imageSnapshot;