TextMap - superclass: textureMap; super-superclass:material - 34:0 - classID: #(1535262031L, 956839498L)
テキスト プラス オブジェクトを手続き型テクスチャ マップとしてレンダリングします。3ds Max 2017 以降で使用可能です。
[パラメータ](Parameters)ロールアウト
[フィルタリング](Filtering)コントロール グループ
<TextMap>.filter BooleanClass default: true -- Boolean
[フィルタ結果](Filter Result)チェックボックスの状態を取得/設定します。
<TextMap>.mipmap BooleanClass default: true -- boolean
[ミップ マッピング](Mip Mapping)チェックボックスの状態を取得/設定します。
[クロップ/配置](Cropping/Placement)コントロール グループ
<TextMap>.applycrop BooleanClass default: false -- boolean
[適用](Apply)チェックボックスの状態を取得/設定します。
<TextMap>.croporplace Integer default: 0 -- integer
[クロップ/配置](Crop/Place)ラジオ ボタンの状態を取得/設定します。
有効な値は次のとおりです。
0 - クロップ (既定値)
1 - 配置
<TextMap>.crop_u Float default: 0.0 -- animatable; float; Clip_U_Offset
[U](U)スピナーの値を取得/設定します。
<TextMap>.crop_v Float default: 0.0 -- animatable; float; Clip_V_Offset
[V](V)スピナーの値を取得/設定します。
<TextMap>.crop_w Float default: 1.0 -- animatable; float; Clip_U_Width
[W](W)スピナーの値を取得/設定します。
<TextMap>.crop_h Float default: 1.0 -- animatable; float; Clip_V_Width
[H](H)スピナーの値を取得/設定します。
<TextMap>.Jitter BooleanClass default: false -- Boolean
[ジッター](Jitter)チェックボックスの状態を取得/設定します。
.croporplace が 1 (配置)に設定されている場合のみ使用されます。
<TextMap>.jitteramt Float default: 1.0 -- animatable; float; Jitter_Placement
[ジッター](Jitter)スピナーの値を取得/設定します。
.croporplace が 1 (配置)に設定されている場合のみ使用されます。
[モノ チャネル出力](Mono Channel Output)コントロール グループ
<TextMap>.monoOutput Integer default: 1 -- integer
[モノ チャネル出力](Mono Channel Output)ラジオ ボタンの状態を取得/設定します。
有効な値は次のとおりです。
0 - RGB 強度
1 - アルファ(既定値)
[RGB チャネル出力](RGB Channel Output)コントロール グループ
<TextMap>.rgbOutput Integer default: 0 -- integer
[RGB チャネル出力](RGB Channel Output)ラジオ ボタンの状態を取得/設定します。
有効な値は次のとおりです。
0 - RGB (既定値)
1 - アルファ (グレー)
[アルファ ソース](Alpha Source)コントロール グループ
<TextMap>.alphasource Integer default: 2 -- integer; Alpha_Source
[アルファ ソース](Alpha Source)ラジオ ボタンの状態を取得/設定します。
有効な値は次のとおりです。
0 - イメージ アルファ
1 - RGB 強度
2 - なし (不透明度) (既定値)
[文字パラメータ](Text Parameters)ロールアウト
<TextMap>.textobject UndefinedClass default: undefined -- node
マップを生成するために使用されるテキスト プラス オブジェクトを取得/設定します。
他のオブジェクト クラスは使用できません。
UI の[テキスト オブジェクト](Text Object)ピックボタンに対応しています。
<TextMap>.usefillcolor BooleanClass default: true -- Boolean
[塗り潰しカラー](Fill Color)チェックボックスの状態を取得/設定します。
<TextMap>.fillcolor Color default: (color 0 0 255) -- animatable; RGB color; Controller Scaling: ([1,1,1] : (color 255 255 255))
[塗り潰しカラー](Fill Color)カラーの値を取得/設定します。
<TextMap>.outlinecolor Color default: (color 0 0 0) -- animatable; RGB color; Controller Scaling: ([1,1,1] : (color 255 255 255))
[線のカラー](Line Color)カラーの値を取得/設定します。
<TextMap>.bgcolor Color default: (color 255 255 255) -- animatable; RGB color; Controller Scaling: ([1,1,1] : (color 255 255 255))
[バックグラウンド カラー](Background Color)カラーの値を取得/設定します。
<TextMap>.fillbg BooleanClass default: true -- boolean
[背景塗りつぶし](Fill Background)チェックボックスの状態を取得/設定します。
[文字](Characters)コントロール グループ
<TextMap>.glyphoption Integer default: 2 -- integer
[文字](Characters)ラジオ ボタンの選択を取得/設定します。
有効な値は次のとおりです。
0 - 文字のみ
1 - 装飾のみ
2 - 文字+装飾(既定値)
<TextMap>.filledcharacters BooleanClass default: true -- Boolean
[レンダリング塗り潰し](Render Fill)チェックボックスの状態を取得/設定します。
<TextMap>.outlinedcharacters BooleanClass default: false -- Boolean
[アウトラインのレンダリング](Render Outline)チェックボックスの状態を取得/設定します。
<TextMap>.stricthierarchy BooleanClass default: false -- Boolean
[厳密な階層](Strict Hierarchy)チェックボックスの状態を取得/設定します。
[アウトライン](Outlines)コントロール グループ
<TextMap>.outlinewidth Float default: 1.0 -- animatable; float
[幅](Width)スピナーの値を取得/設定します。
アウトラインの厚さを定義します。
[階層](Hierarchies)コントロール グループ
<TextMap>.renderchildren BooleanClass default: false -- Boolean
[子のレンダリング](Render Children)チェックボックスの状態を取得/設定します。
<TextMap>.renderroot BooleanClass default: true -- Boolean
[ルートのレンダリング](Render Root)チェックボックスの状態を取得/設定します。
<TextMap>.mergeshapes BooleanClass default: false -- Boolean
[シェイプの合成](Merge Shapes)チェックボックスの状態を取得/設定します。
[マップの境界](Map Boundary)コントロール グループ
<TextMap>.boundstype Integer default: 0 -- integer; _BoundsType
[マップの境界](Map Boundary)ラジオ ボタンの状態を取得/設定します。
有効な値は次のとおりです。
0 - シェイプ境界(既定値)
1 - 手動
2 - 選択
<TextMap>.manualwidth Float default: 100.0 -- float
[幅](Width)スピナーの値を取得/設定します。
.boundstype が 1 (手動)に設定されている場合のみ使用されます。
<TextMap>.manualheight Float default: 100.0 -- float; ManualHeeight
[高さ](Height)スピナーの値を取得/設定します。
.boundstype が 1 (手動)に設定されている場合のみ使用されます。
<TextMap>.boundsobject UndefinedClass default: undefined -- node
境界を定義するシーン オブジェクトを取得/設定します。
.boundstype が 2 (選択)に設定されている場合のみ使用されます。
<TextMap>.hwbitmapsize Integer default: 256 -- integer
[HW ビットマップ サイズ](HW Bitmap Size)スライダの値を取得/設定します。
ビューポート表示に使用するハードウェア ビットマップのサイズをコントロールします。
[座標](Coordinates)ロールアウト
<TextMap>.coords StandardUVGen default: MtlBase:Placement -- maxObject; Coordinates; SubAnim
関連するプロパティの UVGenClass クラスを参照してください。
<TextMap>.output StandardTextureOutput default: MtlBase:Output -- maxObject; SubAnim
関連するプロパティの TexOutputClass クラスを参照してください。
Interface: IMtlRender_Compability_MtlBase
プロパティ:
メソッド:
アクション:
例: |
( resetMaxFile #noprompt --reset the scene local tp = textPlus() --create a TextPlus object to guide the texture map tp.size = 25.0 -- make sure the size is set to default tp.ResetString()--reset the string tp.SetFont "Arial" 0 tp.SetBold true tp.AppendString "D" tp.SetBold false tp.AppendString "oN't\n" tp.SetItalic true tp.AppendString "Pa" tp.SetBold true tp.AppendString "N" tp.SetBold false tp.AppendString "iC!\n" tp.SetItalic false tp.SetFont "Wingdings" 0 tp.AppendChar 74 tp.layouttype = 1 --enforce Region Layout Type tp.length = tp.width = 100 --enforce width and height of 100.0 tp2 = textPlus pos:[0,-87,0] --create another TextPlus object tp2.parent = tp --parent to the first one tp2.ResetString() --reset the string tp2.SetFont "Arial" 0 --set the font to Arial tp2.AppendString "megadodo publications" --set the text tp2.size = 8.0 --change the size local tm = textMap() --create a new text map tm.textobject = tp --set the shape of the map to the TextPlus object tm.fillcolor = color 0 255 100 --set the character fill color to green tm.fillbg = false --do not fill the background tm.outlinecolor = orange --set the outline color to yellow tm.filledcharacters = true --enable filling tm.outlinedcharacters = true --enable outlines tm.outlinewidth = 5 --set the outline thickness tm.alphasource = 0 --enable alpha tm.renderchildren = tm.renderroot = true --render both TextPlus objects in the hierarchy local mm = multiMaterial numsubs:6 --create a new mutli-sub material mm[1] = standard() --create a standard material for the front mm[2] = mm[3] = mm[4] = mm[5] = mm[6] = standard() --create a second standard material for all other sides mm[1].diffuse = mm[2].diffuse = color 0 10 25 --set the sides to the same dark blue color mm[1].diffusemap = tm --set the textMap in the diffuse map slot meditMaterials[1] = mm --display the material 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 local b = box width:200 length:300 height:10 pos:[200,0,0] --create a box primitive b.material = mm --assign the material b.mapcoords=true --enable texture coordinates showTextureMap mm[1] tm true --show the map in the viewport hide #(tp,tp2) --hide the TextPlus objects select b --select the box max zoomext sel all --and zoom extents selected local splt = splat() --create a Splat texture to abuse as a sky map splt.size = 0.01 --make very small splats splt.iterations = 1 --do only one iteration splt.threshold = 0.1 --keep the threshold very low splt.color1 = black --star color splt.color2 = white --space color environmentMap = splt --set the environment map to the Splat texture render outputsize:[1280,720] --render OK ) |