ジャンプ先: 概要. 戻り値. フラグ. Python 例.

概要

artFluidAttrCtx([accopacity=boolean], [autoSave=string], [brushalignment=boolean], [brushfeedback=boolean], [clear=boolean], [currentPaintableFluid=string], [delaySelectionChanged=boolean], [displayAsRender=boolean], [displayVelocity=boolean], [doAutoSave=boolean], [dragSlider=string], [exists=boolean], [expandfilename=boolean], [exportfilemode=string], [exportfilesave=string], [exportfilesizex=int], [exportfilesizey=int], [exportfiletype=string], [history=boolean], [image1=string], [image2=string], [image3=string], [importfileload=string], [importfilemode=string], [importreassign=boolean], [lowerradius=float], [mappressure=string], [name=string], [opacity=float], [outline=boolean], [outwhilepaint=boolean], [paintmode=string], [profileShapeFile=string], [projective=boolean], [property=string], [radius=float], [reflection=boolean], [reflectionaxis=string], [rgbValue=[float, float, float]], [showactive=boolean], [stampProfile=string], [surfaceConformedBrushVertices=boolean], [tablet=boolean], [tangentOutline=boolean], [useStrokeDirection=boolean], [usepressure=boolean], [velocity=[float, float, float]])

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

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

選択した流体ボリュームのプロパティ(density など)をペイントするためのコマンドです。

戻り値

なし

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

フラグ

accopacity, autoSave, brushalignment, brushfeedback, clear, currentPaintableFluid, delaySelectionChanged, displayAsRender, displayVelocity, doAutoSave, dragSlider, exists, expandfilename, exportfilemode, exportfilesave, exportfilesizex, exportfilesizey, exportfiletype, history, image1, image2, image3, importfileload, importfilemode, importreassign, lowerradius, mappressure, name, opacity, outline, outwhilepaint, paintmode, profileShapeFile, projective, property, radius, reflection, reflectionaxis, rgbValue, showactive, stampProfile, surfaceConformedBrushVertices, tablet, tangentOutline, useStrokeDirection, usepressure, velocity
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
accopacity(aco) boolean createqueryedit
不透明度の塗り重ねをオンまたはオフに設定します。C: 既定は false です(既定が true のスカルプト ツールを除く)。Q: 照会すると boolean を返します。
autoSave(autoSave) string createqueryedit
流体の状態を保存する MEL コマンドです。ペイントされた流体プロパティの未保存の値を上書きするようなイベントが発生する前に呼び出されます。このようなイベントには、「現在のタイムの変更」、「現在ペイント可能なプロパティの変更」、「ペイント ツールの終了」などが含まれます(auto-save をオフにするには、引数に「」などの空文字列を渡してください)。
brushalignment(bra) boolean createqueryedit
パス ブラシの位置合わせを指定します。true の場合はストローク パスに位置合わせ、false の場合はアップ ベクトルに位置合わせます。C: 既定は true です。Q: 照会すると boolean を返します。
brushfeedback(brf) boolean createqueryedit
ブラシの追加のフィードバックを描画するかどうかを指定します。C: 既定は true です。Q: 照会すると boolean を返します。
clear(clr) boolean createedit
CV/頂点のすべてを現在値に塗り潰します。
currentPaintableFluid(cpf) string query
このコンテキストで現在ペイントしている流体の名前を照会します。文字列を返します。
delaySelectionChanged(dsc) boolean createqueryedit
内部でのみ使用されます。通常、ツールはセレクション リストの変更に反応して、ペイント可能なジオメトリのリストを更新します。-dsl true を使用した場合、ツールは対応する -dsl false が呼ばれるまでペイント可能リストを更新しません。
displayAsRender(dar) boolean createqueryedit
true の場合、流体の「シェーディング モード(Shaded Display)」アトリビュートを「AsRender」に設定します。これにより、すべての流体プロパティがハードウェア レンダリングで表示されます。false の場合は、現在選択されているペイント可能な流体のアトリビュートのみが表示されます。
displayVelocity(dv) boolean createqueryedit
上の「dar/displayAsRender」の設定とは関係なく、速度表示のオン/オフを切り替えます。たとえば、密度を表示している間だけ速度表示を有効にする場合などに使用します。
doAutoSave(das) boolean edit
未保存のペイントされた流体プロパティがある場合に、-autoSave コマンドを実行します。
dragSlider(dsl) string createedit
(既定のホットキーの 'b' と 'm' のように)ブラシをサイズ変更したりオフセットしたりするため、現在のブラシのドラッグ状態を設定します。文字列引数は次のいずれかです。「radius」、「lowradius」、「opacity」、「value」、「depth」、「displacement」、「uvvector」、または「none」。C: 既定は「none」です。
exists(ex) boolean create
指定したオブジェクトが存在するかどうかによって、true または false を返します。他のフラグは無視されます。
expandfilename(eef) boolean createedit
true の場合、書き出しファイルの名前を拡張し、サーフェス名と連結します。false の場合、名前をそのまま受け取ります。C: 既定は true です。
exportfilemode(efm) string createqueryedit
書き出しチャネルを指定します。有効なエントリは以下のとおりです: 「alpha」、「luminance」、「rgb」、「rgba」。C: 既定は「luminance/rgb」です。Q: 照会すると string を返します。
exportfilesave(esf) string edit
アトリビュート マップを書き出し、指定したファイルに保存します。
exportfilesizex(fsx) int createqueryedit
書き出すアトリビュート マップの幅を指定します。C:既定幅は 256 です。Q: 照会すると integer を返します。
exportfilesizey(fsy) int createqueryedit
書き出すアトリビュート マップの幅を指定します。C:既定幅は 256 です。Q: 照会すると integer を返します。
exportfiletype(eft) string createqueryedit
イメージ ファイル フォーマットを指定します。次のいずれかを指定できます: 「iff」、「tiff」、「jpeg」、「alias」、「rgb」、「fit」、「postScriptEPS」、「softimage」、「wavefrontRLA」、「wavefrontEXP」。C: 既定は「tiff」です。Q: 照会すると string を返します。
history(ch) boolean create
ツール コマンドの場合、対象となるツールのコンストラクション ヒストリをオンにします。
image1(i1) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の最初のアイコンです。
image2(i2) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 2 番目のアイコンです。
image3(i3) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 3 番目のアイコンです。
importfileload(ifl) string edit
指定したファイルのアトリビュート マップをロードします。
importfilemode(ifm) string createqueryedit
読み込むチャネルを指定します。有効なエントリは以下のとおりです: 「alpha」、「luminance」、「red」、「green」、「blue」、「rgb」 C: 既定は「alpha」です。Q: 照会すると string を返します。
importreassign(irm) boolean createqueryedit
読み込む時に複数のアトリビュート マップを再割り当てするかどうかを指定します。再割り当てできるマップは、以前にアーティザン(Artisan)から書き出されたマップだけです。C: 既定は false です。Q: 照会すると boolean を返します。
lowerradius(lr) float createqueryedit
ブラシの下限サイズを設定します(タブレットにのみ適用されます)。
mappressure(mp) string createqueryedit
タブレットを使用するときのタブレット圧力のマッピングを設定します。次の 4 つの選択肢があります: 「none」- 圧力に影響がない、「opacity」- 圧力が不透明度にマップされる、「radius」- 圧力がブラシ半径を修正するようマップされる、「both」- 圧力が不透明度と半径の両方を修正する。C: 既定は「none」です。Q: 照会すると string を返します。
name(n) string create
これがツール コマンドの場合、ツールに適切に名前を付けます。
opacity(op) float createqueryedit
ブラシの不透明度を設定します。C: 既定は 1.0 です。Q: 照会すると float を返します。
outline(o) boolean createqueryedit
ブラシを描画するかどうかを指定します。C: 既定は true です。Q: 照会すると boolean を返します。
outwhilepaint(owp) boolean createqueryedit
ペイント時にブラシの輪郭を描画するかどうかを指定します。C: 既定は false です。Q: 照会すると boolean を返します。
paintmode(pm) string createqueryedit
ペイント モードを指定します。次の 2 つの選択肢があります: 「screen」または「tangent」。C: 既定は「screen」です。Q: 照会すると string を返します。
profileShapeFile(psf) string queryedit
スタンプ シェイプのプロファイルにイメージ ファイルの名前を渡します。
projective(prm) boolean createqueryedit
投影ペイント モードを指定します。C: 既定は false です。Q: 照会すると boolean を返します。
property(p) string createqueryedit
ペイントする流体のプロパティを指定します。有効な値は、「color」、「density」、「densityAndColor」、「densityAndFuel」、「temperature」、「fuel」、「velocity」です。
radius(r) float createqueryedit
ブラシのサイズを設定します。C: 既定は 1.0 cm です。Q: 照会すると float を返します。
reflection(rn) boolean createqueryedit
反射モードを指定します。C: 既定は false です。Q: 照会すると boolean を返します。
reflectionaxis(ra) string createqueryedit
反射軸を指定します。次の 3 つの選択肢があります: 「x」、「y」、「z」。C: 既定は「x」です。Q: 照会すると string を返します。
rgbValue(rgb) [float, float, float] createqueryedit
「color」プロパティをペイントする際に使用するカラーの赤、緑と青成分を指定します。
showactive(sa) boolean createqueryedit
サーフェス アイソパラムの表示をオンまたはオフに設定します。C: 既定は true です。Q: 照会すると boolean を返します。
stampProfile(stP) string createqueryedit
現在のスタンプのブラシ プロファイルを設定します。現在、次のプロファイルがサポートされています。「gaussian」、「soft」、「solid」または「square」。C: 既定は「gaussian」です。Q: 照会すると string を返します。
surfaceConformedBrushVertices(scv) boolean createqueryedit
影響を受ける頂点として、有効なブラシ領域の表示を有効化/無効化します。
tablet(tab) boolean query
タブレット デバイスが存在する場合は true を、存在しない場合は false を返します。
tangentOutline(to) boolean createqueryedit
サーフェスへのブラシ円接線の表示を有効化/無効化します。
useStrokeDirection(usd) boolean createqueryedit
「velocity」をペイントする場合のみ適用できます。ペイントした速度の方向をブラシ ストロークの方向と同一にするかどうかを指定します。これは、-v/-velocity フラグで指定した値を上書きします。
usepressure(up) boolean createqueryedit
タブレット圧力をオンまたはオフに設定します。C: 既定は false です。Q: 照会すると boolean を返します。
velocity(v) [float, float, float] createqueryedit
「velocity」プロパティをペイントする際に使用する速度の x、y と z 成分を指定します。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

import maya.cmds as cmds

# Create a new fluidAttr paint context, then switch to it
cmds.artFluidAttrCtx('artFluidAttrCtx1')
cmds.setToolTo('artFluidAttrCtx1')

# Set to paint the color property on the fluid
cmds.artFluidAttrCtx('artFluidAttrCtx1', edit=True, property='color')