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

概要

art3dPaintCtx [-accopacity boolean] [-afterStrokeCmd string] [-alphablendmode string] [-assigntxt] [-attrnames string] [-beforeStrokeCmd string] [-brushalignment boolean] [-brushdepth float] [-brushfeedback boolean] [-brushtype string] [-clear] [-commonattr string] [-dragSlider string] [-dynclonemode boolean] [-exists] [-expandfilename boolean] [-extendFillColor boolean] [-fileformat string] [-filetxtaspectratio float] [-filetxtsizex int] [-filetxtsizey int] [-floodOpacity float] [-floodall] [-floodselect] [-history boolean] [-image1 string] [-image2 string] [-image3 string] [-keepaspectratio boolean] [-lastRecorderCmd string] [-lastStampName string] [-lowerradius float] [-makeStroke uint] [-mappressure string] [-name string] [-opacity float] [-outline boolean] [-outwhilepaint boolean] [-paintmode string] [-paintoperationtype string] [-painttxtattr string] [-painttxtattrname string] [-pfxScale float] [-pfxWidth float] [-pickColor boolean] [-pickValue] [-playbackCursor float float] [-playbackPressure float] [-preserveclonesource boolean] [-pressureMapping1 int] [-pressureMapping2 int] [-pressureMapping3 int] [-pressureMax1 float] [-pressureMax2 float] [-pressureMax3 float] [-pressureMin1 float] [-pressureMin2 float] [-pressureMin3 float] [-profileShapeFile string] [-projective boolean] [-radius float] [-record boolean] [-reflection boolean] [-reflectionaboutorigin boolean] [-reflectionaxis string] [-reloadtexfile] [-resizeratio float] [-resizetxt] [-rgbcolor float float float] [-rgbflood float float float] [-saveTextureOnStroke boolean] [-saveonstroke boolean] [-savetexture] [-screenRadius float] [-selectclonesource boolean] [-shadernames string] [-shapeattr boolean] [-shapenames string] [-showactive boolean] [-soloAsDiffuse boolean] [-stampDepth float] [-stampProfile string] [-stampSpacing float] [-strokesmooth string] [-surfaceConformedBrushVertices boolean] [-tablet] [-tangentOutline boolean] [-textureFilenames] [-updateEraseTex] [-usepressure boolean] [-worldRadius float]

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

3D Paint Tool 用のツール コンテキスト コマンドです。

戻り値

なし

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

フラグ

accopacity, afterStrokeCmd, alphablendmode, assigntxt, attrnames, beforeStrokeCmd, brushalignment, brushdepth, brushfeedback, brushtype, clear, commonattr, dragSlider, dynclonemode, exists, expandfilename, extendFillColor, fileformat, filetxtaspectratio, filetxtsizex, filetxtsizey, floodOpacity, floodall, floodselect, history, image1, image2, image3, keepaspectratio, lastRecorderCmd, lastStampName, lowerradius, makeStroke, mappressure, name, opacity, outline, outwhilepaint, paintmode, paintoperationtype, painttxtattr, painttxtattrname, pfxScale, pfxWidth, pickColor, pickValue, playbackCursor, playbackPressure, preserveclonesource, pressureMapping1, pressureMapping2, pressureMapping3, pressureMax1, pressureMax2, pressureMax3, pressureMin1, pressureMin2, pressureMin3, profileShapeFile, projective, radius, record, reflection, reflectionaboutorigin, reflectionaxis, reloadtexfile, resizeratio, resizetxt, rgbcolor, rgbflood, saveTextureOnStroke, saveonstroke, savetexture, screenRadius, selectclonesource, shadernames, shapeattr, shapenames, showactive, soloAsDiffuse, stampDepth, stampProfile, stampSpacing, strokesmooth, surfaceConformedBrushVertices, tablet, tangentOutline, textureFilenames, updateEraseTex, usepressure, worldRadius
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
-accopacity(-aco) boolean createqueryedit
不透明度の塗り重ねをオンまたはオフに設定します。C: 既定は false です(既定が true のスカルプト ツールを除く)。Q: 照会すると boolean を返します。
-afterStrokeCmd(-asc) string createqueryedit
渡された文字列はストロークの終了直前に MEL コマンドとして実行されます。C: 既定は、コマンドなしです。Q: 照会すると現在のコマンドを返します。
-alphablendmode(-abm) string createqueryedit
RGB チャネルのペイント時に使用するブレンド モードを指定します。現在、次のブレンド モードをサポートしています: 「Default」、「Lighten」、「Darken」、「Difference」、「Exclusion」、「Hard Light」、「Soft Light」、「Multiply」、「Screen」、「Overlay」、「Constant」。既定は「Default」です。
-assigntxt(-ast) edit
選択したシェーダの指定したアトリビュートに、ファイル テクスチャを割り当て、配置する要求をツールに送ります。
-attrnames(-atn) string createqueryedit
アトリビュートの名前です。
-beforeStrokeCmd(-bsc) string createqueryedit
渡された文字列はストロークの開始直前に MEL コマンドとして実行されます。C: 既定は、コマンドなしです。Q: 照会すると現在のコマンドを返します。
-brushalignment(-bra) boolean createqueryedit
パス ブラシの位置合わせを指定します。true の場合はストローク パスに位置合わせ、false の場合はアップ ベクトルに位置合わせます。C: 既定は true です。Q: 照会すると boolean を返します。
-brushdepth(-bd) float createqueryedit
ブラシの深さです。
-brushfeedback(-brf) boolean createqueryedit
ブラシの追加のフィードバックを描画するかどうかを指定します。C: 既定は true です。Q: 照会すると boolean を返します。
-brushtype(-brt) string createqueryedit
ブラシ タイプの名前です。
-clear(-clr) createedit
CV/頂点のすべてを現在値に塗り潰します。
-commonattr(-cat) string query
ペイント テクスチャ ツール(Paint Texture Tool)でサポートされていて、すべてのシェーダのペイント可能なアトリビュートに共通な名前を持つ文字列を返します。
-dragSlider(-dsl) string createedit
(既定のホットキーの 'b' と 'm' のように)ブラシをサイズ変更したりオフセットしたりするため、現在のブラシのドラッグ状態を設定します。文字列引数は次のいずれかです。「radius」、「lowradius」、「opacity」、「value」、「depth」、「displacement」、「uvvector」、または「none」。C: 既定は「none」です。
-dynclonemode(-dcm) boolean createqueryedit
ダイナミック クローン モードを有効または無効にします。
-exists(-ex) create
指定したオブジェクトが存在するかどうかによって、true または false を返します。他のフラグは無視されます。
-expandfilename(-eef) boolean createedit
true の場合、書き出しファイルの名前を拡張し、サーフェス名と連結します。false の場合、名前をそのまま受け取ります。C: 既定は true です。
-extendFillColor(-efc) boolean createqueryedit
各ストロークでペイントされたテクスチャを自動的に後処理し、バックグラウンド カラーで塗りつぶすかどうかを指定します。既定は true です。
-fileformat(-eff) string createqueryedit
ファイル形式の名前です。
-filetxtaspectratio(-far) float createqueryedit
テクスチャ幅と高さのアスペクト比を指定します。既定は 1 です。
-filetxtsizex(-ftx) int createqueryedit
テクスチャの幅を指定します。既定は 256 を返します。
-filetxtsizey(-fty) int createqueryedit
テクスチャの高さを指定します。既定は 256 を返します。
-floodOpacity(-fop) float createqueryedit
塗り潰しの不透明度値です。
-floodall(-fal) createqueryedit
すべての塗り潰しをオンにします。
-floodselect(-fsl) createqueryedit
選択された領域を塗り潰しますか?
-history(-ch) boolean create
ツール コマンドの場合、対象となるツールのコンストラクション ヒストリをオンにします。
-image1(-i1) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の最初のアイコンです。
-image2(-i2) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 2 番目のアイコンです。
-image3(-i3) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 3 番目のアイコンです。
-keepaspectratio(-kar) boolean createqueryedit
ファイル テクスチャ サイズのアスペクト比を一定にするかどうかを指定します。既定は true です。ブーリアン。
-lastRecorderCmd(-lrc) string createqueryedit
最後に記録されたコマンドの値です。
-lastStampName(-lsn) string createqueryedit
最後のスタンプ名の値です。
-lowerradius(-lr) float createqueryedit
ブラシの下限サイズを設定します(タブレットにのみ適用されます)。
-makeStroke(-mst) uint createqueryeditmultiuse
ストローク ポイントの値です。
-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 を返します。
-paintoperationtype(-pot) string createqueryedit
ペイント ツールの操作タイプを指定します。現在、次のペイント モードをサポートしています: 「Paint」、「Smear」、「Blur」、「Erase」、「Clone」。既定は「Paint」です。
-painttxtattr(-pta) string createqueryedit
ユーザがペイントするシェーダのアトリビュートを指定します。現在は、「Color」、「Transparency」、「Ambient」、「Incandescence」、「BumpMap」、「Diffuse」、「Translucence」、「Eccentricity」、 「SpecularColor」、「Reflectivity」、「ReflectedColor」、およびユーザ定義の float、float3、double、double3 アトリビュートをサポートします。既定は「Color」です。
-painttxtattrname(-ptn) string queryedit
ペイント テクスチャ ツール(Paint Texture Tool)でサポートされているすべてのペイント可能なアトリビュートの名前を持つ文字列を返します。
-pfxScale(-psc) float queryedit
ペイント エフェクト(Paint Effect)ブラシのスケールを指定します。
-pfxWidth(-pwd) float queryedit
ペイント エフェクト(Paint Effect)ブラシの幅を指定します。
-pickColor(-pcm) boolean createqueryedit
カラーの選択モードのオン/オフを切り替えます。
-pickValue(-pv) createqueryedit
選択の切り替え
-playbackCursor(-plc) float float createqueryeditmultiuse
再生カーソルの値です。
-playbackPressure(-plp) float createqueryeditmultiuse
再生圧力の値です。
-preserveclonesource(-pcs) boolean createqueryedit
クローン ソースを保持するかどうかを指定します。
-pressureMapping1(-pm1) int createqueryedit
1 番目の圧力マッピング値
-pressureMapping2(-pm2) int createqueryedit
2 番目の圧力マッピング値
-pressureMapping3(-pm3) int createqueryedit
3 番目の圧力マッピング値
-pressureMax1(-px1) float createqueryedit
1 番目の圧力最大値
-pressureMax2(-px2) float createqueryedit
2 番目の圧力最大値
-pressureMax3(-px3) float createqueryedit
3 番目の圧力最大値
-pressureMin1(-ps1) float createqueryedit
1 番目の圧力最小値
-pressureMin2(-ps2) float createqueryedit
2 番目の圧力最小値
-pressureMin3(-ps3) float createqueryedit
3 番目の圧力最小値
-profileShapeFile(-psf) string queryedit
スタンプ シェイプのプロファイルにイメージ ファイルの名前を渡します。
-projective(-prm) boolean createqueryedit
投影ペイント モードを指定します。C: 既定は false です。Q: 照会すると boolean を返します。
-radius(-r) float createqueryedit
ブラシのサイズを設定します。C: 既定は 1.0 cm です。Q: 照会すると float を返します。
-record(-rec) boolean createqueryedit
記録をオンに切り替えます。
-reflection(-rn) boolean createqueryedit
反射モードを指定します。C: 既定は false です。Q: 照会すると boolean を返します。
-reflectionaboutorigin(-rno) boolean createqueryedit
原点を中心として反射されるようにオンに切り替えます。
-reflectionaxis(-ra) string createqueryedit
反射軸を指定します。次の 3 つの選択肢があります: 「x」、「y」、「z」。C: 既定は「x」です。Q: 照会すると string を返します。
-reloadtexfile(-rtf) edit
ディスクからテクスチャをリロードする要求をツールに送ります。
-resizeratio(-rr) float queryedit
現在のテクスチャのサイズを変更するスケールを指定します。
-resizetxt(-rft) edit
現在使用中のすべてのテクスチャのサイズ変更要求をツールに送ります。
-rgbcolor(-rgb) float float float createqueryedit
カラー値です。
-rgbflood(-fc) float float float createqueryedit
塗り潰しのカラーです。
-saveTextureOnStroke(-sts) boolean createqueryedit
各ストロークでオリジナルのテクスチャを自動的に保存するかどうかを指定します。既定は false です。
-saveonstroke(-sos) boolean createqueryedit
各ストロークで一時的なテクスチャを自動的に保存するかどうかを指定します。既定は false です。
-savetexture(-stx) edit
ディスクにテクスチャを保存する要求をツールに送ります。
-screenRadius(-scR) float createqueryedit
スクリーン上のブラシ半径です。
-selectclonesource(-scs) boolean createqueryedit
クローン ソースの選択の切り替えをオンにします。
-shadernames(-hnm) string query
選択したサーフェスに割り当てられているすべてのシェーダの名前を持つ文字列を返します。
-shapeattr(-spa) boolean queryedit
ペイントするアトリビュートがシェーダではなくシェイプのアトリビュートであるかどうかを指定します。既定は false です。
-shapenames(-shn) string query
現在ペイント中のすべてのサーフェスの名前を持つ文字列を返します。
-showactive(-sa) boolean createqueryedit
サーフェス アイソパラムの表示をオンまたはオフに設定します。C: 既定は true です。Q: 照会すると boolean を返します。
-soloAsDiffuse(-sod) boolean queryedit
現在ペイント可能なテクスチャをビューポートで拡散テクスチャとしてレンダーするかどうかを指定します。既定は false です。
-stampDepth(-stD) float createqueryedit
スタンプの深さです。
-stampProfile(-stP) string createqueryedit
現在のスタンプのブラシ プロファイルを設定します。現在、次のプロファイルがサポートされています。「gaussian」、「poly」、「solid」、「square」。 C: 既定は「gaussian」です。Q: 照会すると string を返します。
-stampSpacing(-stS) float createqueryedit
スタンプ間隔を指定します。既定は 1.0 です。
-strokesmooth(-ssm) string createqueryedit
ストロークのスムージング タイプ名です。
-surfaceConformedBrushVertices(-scv) boolean createqueryedit
影響を受ける頂点として、有効なブラシ領域の表示を有効化/無効化します。
-tablet(-tab) query
タブレット デバイスが存在する場合は true を、存在しない場合は false を返します。
-tangentOutline(-to) boolean createqueryedit
サーフェスへのブラシ円接線の表示を有効化/無効化します。
-textureFilenames(-tfn) query
ペイントされたすべてのファイル テクスチャの名前を含む文字列配列を返します。
-updateEraseTex(-uet) createqueryedit
消去テクスチャを更新する必要がありますか?
-usepressure(-up) boolean createqueryedit
タブレット圧力をオンまたはオフに設定します。C: 既定は false です。Q: 照会すると boolean を返します。
-worldRadius(-wlR) float createqueryedit
ワールド空間内の半径です。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます コマンド内でフラグを複数回使用できます。

MEL 例

// Create a new 3d paint context, then switch to it
art3dPaintCtx art3dPaintCtx1;
setToolTo art3dPaintCtx1;

// Set art3dPaintCtx1's radius to 2.0, lowerradius to 0.5
art3dPaintCtx -e -r 2.0 -lr 0.5 art3dPaintCtx1;