インタフェース: BakeElementProperties

BakeElementProperties インタフェースは、すべてのベイク処理要素で公開されており、インデックス アクセスによるプロパティへのアクセスを提供します。

3ds Max 2008 以降 で使用可能です。

インタフェース: INodeBakeProperties」インタフェースも参照してください。

Interface: BakeElementProperties

プロパティ:

.backgroundColor : color : Read|Write     

ベイク処理要素のバックグラウンド カラーを取得/設定します。既定値は、(color 0 0 0 0)です。

メソッド:

<integer>nParams()   

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

<string>paramName <integer>paramIndex

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

<integer>paramType <integer>paramIndex

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

<integer>getParamValue <integer>paramIndex

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

<void>setParamValue <integer>paramIndex <integer>newValue

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

<value>getParamFPValue <integer>paramIndex

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

<void>setParamFPValue <integer>paramIndex <value>newValue

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

<value>getParamFPValueMin <integer>paramIndex

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

<value>getParamFPValueMax <integer>paramIndex

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

<integer>findParam <string>paramName

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

    -- create a new BlendMap Bake Element
    be = BlendMap()
    --> ReferenceTarget:BlendMap
    be.nParams()
    --> 8
    for i = 1 to be.nParams() do
    format "%: Type:% Value:% FPValue:% Min:% Max:%\n"\
    i (be.paramName i) (be.ParamType i) (be.getParamValue i)\
    (be.getParamFPValue i) (be.getParamFPValueMin i)\
    (be.getParamFPValueMax i)
    --> 1: Type:Lighting Value:1 FPValue:1 Min:1 Max:-999999999
    --> 2: Type:Shadows Value:1 FPValue:1 Min:1 Max:-999999999
    --> 3: Type:Diffuse Value:1 FPValue:1 Min:1 Max:-999999999
    --> 4: Type:Ambient Value:1 FPValue:1 Min:1 Max:-999999999
    --> 5: Type:Specular Value:1 FPValue:1 Min:1 Max:-999999999
    --> 6: Type:Self-Illum Value:1 FPValue:1 Min:1 Max:-999999999
    --> 7: Type:Reflection Value:1 FPValue:1 Min:1 Max:-999999999
    --> 8: Type:Refraction Value:1 FPValue:1 Min:1 Max:-999999999