ToggleVisibilityOfTextureUVDomains

Description

Toggles the visibility of texture support objects.

Scripting Syntax

ToggleVisibilityOfTextureUVDomains( [InputObjs], [Type] );

Parameters

Parameter Type Description
InputObjs String List of objects whose texture support objects are to be shown or hidden.

Default Value: Selected objects

Type Long Hide, Unhide or toggle the visibility

Default Value: -1

Possible Values:

Description:

0 Hide Texture Support
1 Unhide Texture Support
-1 Toggle visibility of Texture Support

Examples

VBScript Example

'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

See Also

HideTextureUVDomains UnhideTextureUVDomains SIGetTextureUVDomains