ShapeMap - superclass: textureMap; super-superclass:material - 35:0 - classID: #(1917470054L, 1344173505L)
このテクスチャ マップは 1 つまたは複数のシーン シェイプ オブジェクトを手続き型テクスチャ マップにレンダリングできます。3ds Max 2017 以降で使用可能です。
コンストラクタ:
ShapeMap...
[パラメータ](Parameters)ロールアウト
[フィルタリング](Filtering)コントロール グループ
<ShapeMap>.filter BooleanClass default: true -- boolean
[フィルタ結果](Filter Result)チェックボックスの状態を取得/設定します。
<ShapeMap>.mipmap BooleanClass default: true -- boolean
[ミップ マッピング](Mip Mapping)チェックボックスの状態を取得/設定します。
[クロップ/配置](Cropping/Placement)コントロール グループ
<ShapeMap>.applycrop BooleanClass default: false -- boolean
[適用](Apply)チェックボックスの状態を取得/設定します。
<ShapeMap>.croporplace Integer default: 0 -- integer
[クロップ/配置](Crop/Place)ラジオ ボタンの状態を取得/設定します。
有効な値は次のとおりです。
0 - クロップ (既定値)
1 - 配置
<ShapeMap>.crop_u Float default: 0.0 -- animatable; float; Clip_U_Offset
[U](U)スピナーの値を取得/設定します。
<ShapeMap>.crop_v Float default: 0.0 -- animatable; float; Clip_V_Offset
[V](V)スピナーの値を取得/設定します。
<ShapeMap>.crop_w Float default: 1.0 -- animatable; float; Clip_U_Width
[W](W)スピナーの値を取得/設定します。
<ShapeMap>.crop_h Float default: 1.0 -- animatable; float; Clip_V_Width
[H](H)スピナーの値を取得/設定します。
<ShapeMap>.Jitter BooleanClass default: false -- Boolean
[ジッター](Jitter)チェックボックスの状態を取得/設定します。
の場合のみ使用されます。croporplace は 1 (配置)に設定されています。
<ShapeMap>.jitteramt Float default: 1.0 -- animatable; float; Jitter_Placement
[ジッター](Jitter)スピナーの値を取得/設定します。
の場合のみ使用されます。croporplace は 1 (配置)に設定されています。
[モノ チャネル出力](Mono Channel Output)コントロール グループ
<ShapeMap>.monoOutput Integer default: 1 -- integer
[モノ チャネル出力](Mono Channel Output)ラジオ ボタンの状態を取得/設定します。
有効な値は次のとおりです。
0 - RGB 強度
1 - アルファ(既定値)
[RGB チャネル出力](RGB Channel Output)コントロール グループ
<ShapeMap>.rgbOutput Integer default: 0 -- integer
[RGB チャネル出力](RGB Channel Output)ラジオ ボタンの状態を取得/設定します。
有効な値は次のとおりです。
0 - RGB (既定値)
1 - アルファ (グレー)
[アルファ ソース](Alpha Source)コントロール グループ
<ShapeMap>.alphasource Integer default: 2 -- integer; Alpha_Source
[アルファ ソース](Alpha Source)ラジオ ボタンの状態を取得/設定します。
有効な値は次のとおりです。
0 - イメージ アルファ
1 - RGB 強度
2 - なし (不透明度) (既定値)
[シェイプ パラメータ](Shape Parameters)ロールアウト
<ShapeMap>.shapeobject UndefinedClass default: undefined -- node
マップを生成するために使用されるシェイプ オブジェクトを取得/設定します。
UI の[シェイプ オブジェクト](Shape Object)ピックボタンに対応しています。
従来のテキスト シェイプなど、任意の有効なシェイプ オブジェクトを指定できます。
テキスト プラスはシェイプ ノードでありません。テキスト プラス オブジェクトを使用してテクスチャを作成するには、TextMap : TextureMap クラスを参照してください。
<ShapeMap>.usefillcolor BooleanClass default: true -- boolean
[塗り潰しカラー](Fill Color)チェックボックスの状態を取得/設定します。
<ShapeMap>.fillcolor Color default: (color 0 0 255) -- animatable; RGB color; Controller Scaling: ([1,1,1] : (color 255 255 255))
[塗り潰しカラー](Fill Color)カラーの値を取得/設定します。
<ShapeMap>.outlinecolor Color default: (color 0 0 0) -- animatable; RGB color; Controller Scaling: ([1,1,1] : (color 255 255 255))
[線のカラー](Line Color)カラーの値を取得/設定します。
<ShapeMap>.bgcolor Color default: (color 255 255 255) -- animatable; RGB color; Controller Scaling: ([1,1,1] : (color 255 255 255))
[バックグラウンド カラー](Background Color)カラーの値を取得/設定します。
<ShapeMap>.fillbg BooleanClass default: true -- boolean
[背景塗りつぶし](Fill Background)チェックボックスの状態を取得/設定します。
[開いたシェイプ](Open Shapes)コントロール グループ
<ShapeMap>.renderopen BooleanClass default: true -- boolean
[レンダリング](Render)チェックボックスの状態を取得/設定します。
<ShapeMap>.endtype Integer default: 0 -- integer
[開いたシェイプ(終点タイプ)](Open Shapes (End Type))ラジオ ボタンの状態を取得/設定します。
有効な値は次のとおりです。
0 - 矩形終端(既定値)
1 - 円形終端
[閉じたシェイプ](Closed Shapes)コントロール グループ
<ShapeMap>.filledclosed BooleanClass default: true -- boolean
[レンダリング塗り潰し](Render Fill)チェックボックスの状態を取得/設定します。
<ShapeMap>.outlinedclosed BooleanClass default: false -- boolean
[アウトラインのレンダリング](Render Outline)チェックボックスの状態を取得/設定します。
<ShapeMap>.stricthierarchy BooleanClass default: false -- boolean
[厳密な階層](Strict Hierarchy)チェックボックスの状態を取得/設定します。
[アウトライン](Outlines)コントロール グループ
<ShapeMap>.outlinewidth Float default: 1.0 -- animatable; float
[幅](Width)スピナーの値を取得/設定します。
アウトラインの厚さを定義します。
[階層](Hierarchies)コントロール グループ
<ShapeMap>.renderchildren BooleanClass default: false -- boolean
[子のレンダリング](Render Children)チェックボックスの状態を取得/設定します。
<ShapeMap>.renderroot BooleanClass default: true -- boolean
[ルートのレンダリング](Render Root)チェックボックスの状態を取得/設定します。
<ShapeMap>.mergeshapes BooleanClass default: false -- boolean
[シェイプの合成](Merge Shapes)チェックボックスの状態を取得/設定します。
[マップの境界](Map Boundary)コントロール グループ
<ShapeMap>.boundstype Integer default: 0 -- integer; _BoundsType
[マップの境界](Map Boundary)ラジオ ボタンの状態を取得/設定します。
有効な値は次のとおりです。
0 - シェイプ境界(既定値)
1 - 手動
2 - 選択
<ShapeMap>.manualwidth Float default: 100.0 -- float
[幅](Width)スピナーの値を取得/設定します。
.boundstype が 1 (手動)に設定されている場合のみ使用されます。
<ShapeMap>.manualheight Float default: 100.0 -- float; ManualHeeight
[高さ](Height)スピナーの値を取得/設定します。
.boundstype が 1 (手動)に設定されている場合のみ使用されます。
<ShapeMap>.boundsobject UndefinedClass default: undefined -- node
境界を定義するシーン オブジェクトを取得/設定します。
.boundstype が 2 (選択)に設定されている場合のみ使用されます。
<ShapeMap>.hwbitmapsize Integer default: 256 -- integer
[HW ビットマップ サイズ](HW Bitmap Size)スライダの値を取得/設定します。
ビューポート表示に使用するハードウェア ビットマップのサイズをコントロールします。
[座標](Coordinates)ロールアウト
<ShapeMap>.coords StandardUVGen default: MtlBase:Placement -- maxObject; Coordinates; SubAnim
関連するプロパティの UVGenClass クラスを参照してください。
UI 表示はありません。
<ShapeMap>.output StandardTextureOutput default: MtlBase:Output -- maxObject; SubAnim
関連するプロパティの TexOutputClass クラスを参照してください。
Interface: IMtlRender_Compability_MtlBase
プロパティ:
メソッド:
アクション:
例: |
( resetMaxFile #noprompt --reset the scene theRadius=10.0 --base circle radius in world units theThickness=3.0 --outline thickness in pixels c1 = circle radius:theRadius pos:[0,0,0] adaptive:true --base circle dist = theRadius for i = 0 to 360 by 60 do --draw 6 circles at distance equal to the radius, and parent to the base c2 = circle radius:theRadius pos:[dist*(cos i),dist*(sin i),0] adaptive:true parent:c1 dist = 2*theRadius*(sin 60) for i = 30 to 360 by 60 do --draw 6 more circles at the intersections of the previous 6, and parent to the base c2 = circle radius:theRadius pos:[dist*(cos i),dist*(sin i),0] adaptive:true parent:c1 dist = 2*theRadius for i = 0 to 360 by 60 do --draw 6 circles at distance 2*radius, and parent to the base c2 = circle radius:theRadius pos:[dist*(cos i),dist*(sin i),0] adaptive:true parent:c1 sm = shapeMap() --create a shape map meditMaterials[1] = sm --display it in the first slot of the material editor matEditor.mode = #basic --set the material editor to compact mode matEditor.open() --open the material editor if it is not open yet sm.shapeobject = c1 --set the shape of the map to the base circle sm.renderroot = true --enable both the root... sm.renderchildren = true --...and the children of the hierarchy to render sm.outlinecolor = yellow --set the line color to yellow sm.bgcolor = color 0 128 255 --set the background to sky blue sm.filledclosed = false --disable the filling of closed shapes sm.outlinedclosed = true --enable the outlines of closed shapes sm.outlinewidth = theThickness --set the outline thickness in pixels sm.boundstype = 1 --switch to manual bounds theSize = 6*theRadius --calculate the size of the bitmap as 6 times the radius theSize+= theSize*0.01 --add 1% padding sm.manualwidth = sm.manualheight = theSize --set the width and height to the same value smat = standard() --create a standard material smat.diffusemap = sm --set the shapeMap in the diffuse map slot p = plane width:200 length:200 pos:[200,0,0] --create a plane primitive p.material = smat --assign the material showTextureMap smat sm true --show the map in the viewport bm = bitmap 1024 1024 --create a bitmap renderMap sm into:bm --render the texture into the bitmap display bm --display the bitmap max zoomext sel all ) |