SIHideObjects
 
 
 

SIHideObjects

Introduced

v1.0

Description

Hides selected or given objects.

Scripting Syntax

SIHideObjects( [Target], [PropertyName] );

Parameters

Parameter Type Description
Target String List of objects.

Default Value: Selected objects

PropertyName String Visibility parameter(s) to set.

Default Value: visibility

Possible Values:

Description:

visibility View and Render visibility
viewvis View visibility
rendvis Render visibility
selectability Selectability

Examples

1. VBScript Example

NewScene
'Get two primitive objects, select them both and then hide them
CreatePrim "Cone", "MeshSurface"
CreatePrim "Sphere", "MeshSurface"
'Select all the polygon mesh children of the scene root and hide them
set objs = activesceneroot.children.filter(siPolyMeshType)
SIHideObjects objs
'Unhide them both and then hide only their render visibility
set objs = activesceneroot.children.filter(siPolyMeshType)
SIUnhideObjects objs
SIHideObjects objs, "rendvis"

2. VBScript Example

NewScene
'Get a primitive sphere, tag some polygons and then hide them
CreatePrim "Sphere", "MeshSurface"
SelectGeometryComponents "sphere.poly[19-21,27-29]"
SIHideObjects