インタフェース: INodeBakeProperties

ノードの[テクスチャをベイキング](Texture Baking)プロパティに対するノード インタフェースを表します。

プロパティ:

<Node>.bakeEnabled : boolean : Read|Write     

ノードの[テクスチャをベイキング](Texture Baking)を使用可能/使用不可能にします。

<Node>.bakeChannel : integer : Read|Write   

ノードの[テクスチャをベイキング](Texure Baking)チャネルを取得/設定します。

<Node>.nDilations : integer : Read|Write

ノードのnDilation値を取得/設定します。

<Node>.flags: integer : Read|Write

[テクスチャをベイキング](Texture Baking)フラグを取得/設定します。

<Node>.surfaceArea : float : Read|Write

[テクスチャのサーフェス エリアをベイキング](Texture Baking Surface Area)を取得/設定します。

<Node>.areaScale : float : Read|Write

[テクスチャのエリア比率をベイキング](Texture Baking Area Scaling)を取得/設定します。

<Node>.activeOriginX : float : Read|Write

[テクスチャのアクティブの原点](Texture Baking Active Origin)の X 座標を取得/設定します。

<Node>.activeOriginY : float : Read|Write

[テクスチャのアクティブの原点](Texture Baking Active Origin)の Y 座標を取得/設定します。

<Node>.activeWidth : float : Read|Write

[テクスチャのアクティブの幅](Texture Baking Active Width)を取得/設定します。

<Node>.activeHeight : float : Read|Write

[テクスチャのアクティブの高さ](Texture Baking Active Height)を取得/設定します。

メソッド:

<boolean><Node>.addBakeElement <maxObject>element

ベイク処理要素を追加します。

<boolean><Node>.removeBakeElement <maxObject>element

ベイク処理要素を削除します。

<boolean><Node>.removeBakeElementByIndex <integer>elementIndex

インデックスで指定されたベイク処理要素を削除します。

<boolean><Node>.removeBakeElementByName <string>elementName

名前の文字列によって指定されたベイク処理要素を削除します。

<void><Node>.removeAllBakeElements()

すべてのベイク処理要素を削除します。

<integer><Node>.numBakeElements()

ベイク処理要素の数を返します。

<maxObject><Node>.getBakeElement <integer>index

インデックスで指定されたベイク処理要素を返します。

<integer><Node>.findByName <string>elementName

指定されたベイク処理要素のインデックスを返します。

<integer><Node>.renderWidth()

レンダリング幅をピクセル数で返します。

<integer><Node>.renderHeight()

レンダリング高さをピクセル数で返します。

<boolean><Node>.effectiveEnable()

使用可能状態を返します。

<integer><Node>.nParams()

ベイク処理要素内の使用可能なパラメータの数を返します。

ベイク処理要素パラメータにインデックス付きアクセスを行うときは、以下のメソッドを使用します。これらのメソッドでは、特定のベイク処理要素についてそのプロパティの状態を操作することができます。このとき、各ベイク処理要素のクラスを考慮する必要はありません。

<integer><Node>.numElementParams <maxObject>element

ベイク処理要素内の使用可能なパラメータの数を返します。

<string><Node>.paramName <maxObject>element<integer>paramIndex

ベイク処理要素内のインデックスで指定されたパラメータの名前を返します。

<integer><Node>.paramType <maxObject>element<integer>paramIndex

ベイク処理要素内のインデックスで指定されたパラメータのタイプを返します。

<value><Node>.paramValue <maxObject>element<integer>paramIndex

ベイク処理要素内のインデックス付きパラメータの値を返します。

<void><Node>.setParamValue <maxObject>element <integer>paramIndex <value>paramValue

ベイク処理要素内のインデックスで指定されたパラメータの値を指定の値に設定します。

<value><Node>.paramValueMin <maxObject>element <index>paramIndex

 ベイク処理要素内のインデックス付きパラメータの値3ds Max 8 以降 で使用可能です。

<value><Node>.paramValueMax <maxObject>element <index>paramIndex

 ベイク処理要素内のインデックス付きパラメータの値3ds Max 8 以降 で使用可能です。

<integer><Node>.findParam <maxObject>element <string>paramName

ベイク処理要素内の名前付きパラメータのインデックスを返します。

    -- create a new BlendMap Bake Element
    be = BlendMap()
    --> ReferenceTarget:BlendMap
    -- create a new Box object and get its INodeBakeProperties interface
    bx = Box()
    bi = bx.INodeBakeProperties
    --> <MixinInterface:INodeBakeProperties>
    -- add the new BakeElement to the node
    bi.addBakeElement be
    --> true
    -- get the number of available parameters
    bi.numElementParams be
    --> 8
    -- output the name, type and value of all 8 parameters
    for i = 1 to 8 do format "% % %\n" (bi.paramName be i) (bi.paramType be i) (bi.paramValue be i)
    --> Lighting 1 1
    --> Shadows 0 1
    --> Diffuse 0 1
    --> Ambient 0 1
    --> Specular 0 1
    --> Self-Illum 0 1
    --> Reflection 0 1
    --> Refraction 0 1
    --> OK
    -- check the value of paramter 1 (Lighting) - 1 means True
    bi.paramValue be 1
    --> 1
    -- check the actual Lighting property &endash; it is really True
    be.Lighting
    --> true
    -- to change the Lighting to False, set the parameter value to 0
    bi.setParamValue be 1 0
    --> OK
    -- check to see the new value
    bi.paramValue be 1
    --> 0
    -- check to see that the property of the BakeElement has changed...
    be.Lighting
    --> false