移動先: 概要 戻り値 フラグ. Python 例.

概要

iprEngine([copy=string], [defineTemplate=string], [estimatedMemory=boolean], [exists=boolean], [iprImage=string], [motionVectorFile=boolean], [object=name], [region=[int, int, int, int]], [relatedFiles=boolean], [releaseIprImage=boolean], [resolution=boolean], [scanlineIncrement=string], [showProgressBar=boolean], [startTuning=boolean], [stopTuning=boolean], [underPixel=[int, int]], [update=boolean], [updateDepthOfField=boolean], [updateLightGlow=boolean], [updateMotionBlur=boolean], [updatePort=string], [updateShaderGlow=boolean], [updateShading=boolean], [updateShadowMaps=boolean], [useTemplate=string])

注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。

iprEngine は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。

iprEngine を作成、または編集するためのコマンド。iprEngine はシェーディング ネットワークへの変更を監視し、自動的に再シェーディングして、最新のイメージを生成するオブジェクトです。

戻り値

string- 作成または修正された IPR エンジン名

戻り値の型は照会モードでは照会フラグが基になります。

フラグ

copy, defineTemplate, estimatedMemory, exists, iprImage, motionVectorFile, object, region, relatedFiles, releaseIprImage, resolution, scanlineIncrement, showProgressBar, startTuning, stopTuning, underPixel, update, updateDepthOfField, updateLightGlow, updateMotionBlur, updatePort, updateShaderGlow, updateShading, updateShadowMaps, useTemplate
ロング ネーム(ショート ネーム) 引数型 プロパティ
exists(ex) boolean create
指定したオブジェクトが存在するかどうかによって、 true または false を返します。他のフラグは無視されます。
defineTemplate(dt) string create
他の任意のフラグと引数を解析し、かつ引数で指定したコマンド テンプレートに 追加するモードに、コマンドのモードを変更します。 templateName がカレントのテンプレートとして設定されていれば、 その後コマンドが実行されるたびに、この引数がデフォルトの引数として使用されます。
useTemplate(ut) string create
コマンドに、カレント以外のコマンド テンプレートの使用を強制します。
iprImage(ipr) string createqueryedit
使用する ipr イメージを指定します。
releaseIprImage(rii) boolean edit
ipr イメージとメモリを解放する必要があります。
object(obj) name createqueryedit
調整されるオブジェクトです。
region(r) [int, int, int, int] createqueryedit
調整する領域の座標です。 整数は、左 下 右 上、または x1 y2 x2 y2 の順です。
resolution(res) boolean query
ipr ファイルの幅と高さです。
updatePort(up) string createqueryedit
ピクセル値が再計算されたときに更新されるポート番号です(現在は、サポートされていません)。
update(u) boolean createedit
強制更新します。
updateShading(us) boolean createqueryedit
シェーディングを自動的に更新します。
updateShaderGlow(usg) boolean createqueryedit
シェーダ グローが変更されたときに自動的に更新します。
updateLightGlow(ulg) boolean createqueryedit
ライト グローが変更されたときに自動的に更新します。
updateMotionBlur(umb) boolean createqueryedit
2.5D モーション ブラーが変更されたときに自動的に更新します。
updateDepthOfField(udf) boolean createedit
被写界深度を強制的にリフレッシュします。
updateShadowMaps(usm) boolean createedit
シャドウ マップを強制的に生成、更新します。
startTuning(st) boolean createqueryedit
ipr イメージが指定されているときに、シェーディング ネットワークを変更して強制的にイメージを生成します。
stopTuning(spt) boolean createqueryedit
調整は終了しますが、ipr イメージは閉じられません。
underPixel(un) [int, int] edit
指定したピクセル未満のオブジェクトのリストを取得します。
scanlineIncrement(sli) string createqueryedit
走査線の増分をパーセントで指定します。更新される領域の高さが 240 ピクセルで scanlineIncrement が 10%の場合、イメージは 24 走査線を 1 ブロックとしてリフレッシュされます。
estimatedMemory(mem) boolean query
IPR で使用されるメモリの見積もり量を表示します。
motionVectorFile(mvf) boolean query
IPR で使用されるモーション ベクトル ファイルの名前を返します。
showProgressBar(spb) boolean createqueryedit
調整中に進捗バーを表示します。
relatedFiles(rel) boolean query
「non-glow-non-blur image」などの関連ファイル、モーション ベクトル ファイル、デプスマップ ファイルなどの名前を返します。
copy(cp) string edit
ディープラスタ ファイルとこれに関連するファイルを新しい位置にコピーします。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

import maya.cmds as cmds

# Create a iprEngine and tell it about an already created ipr image.
cmds.iprEngine(ipr='iprImages/persp_scene1_ipr.iff')

# Tell the iprEngine about the region to update.
cmds.iprEngine( 'iprEngine1', e=True, region=(10, 10, 100, 100))

# Tell the iprEngine to watch changes and update pixels.
cmds.iprEngine( 'iprEngine1', e=True, startTuning=True )