ToggleVisibilityOfTextureUVDomains

詳細

テクスチャ サポート オブジェクトの表示を切り替えます。

スクリプト構文

ToggleVisibilityOfTextureUVDomains( [InputObjs], [Type] );

パラメータ

パラメータ タイプ 説明
InputObjs 文字列 表示を切り替えるテクスチャ サポート オブジェクトを持つオブジェクトのリスト

デフォルト値: 選択されたオブジェクト

Type Long 表示/非表示を切り替えます。

デフォルト値: -1

指定可能な値:

説明:

0 テクスチャ サポートを非表示にする
1 テクスチャ サポートを表示する
-1 テクスチャ サポートの表示を切り替える

VBScript の例

'Create a simple primitive, apply a default shader and create a texture projection

NewScene , false

CreatePrim "Sphere", "MeshSurface", "MySphere"

ApplyShader

BlendInPresets "Fractal", , , True, True

CreateProjection "MySphere", siTxtUV, siTxtDefaultSpherical, "Texture_Support", "Texture_Projection"

SetInstanceDataValue , "MySphere.Material.Phong.ambient_blend.Fractal.tspace_id", "Texture_Projection"

'Find the first polygon mesh child object of the scene root

set obj = activesceneroot.children.find(siPolyMeshType)

'Toggle the visibility of the texture support

ToggleVisibilityOfTextureUVDomains obj

関連項目

HideTextureUVDomains UnhideTextureUVDomains SIGetTextureUVDomains