HideUnselected

Introduced

1.0

Description

Hides unselected objects or polygons.

Scripting Syntax

    HideUnselected( [Target], [PropertyName] )

Parameters

Parameter | Type | Description
Target | String | List of objects. The command is applied to all unselected objects in this list. Default Value: All objects
PropertyName | String | Visibility parameters to set. Default Value: visibility Possible Values: • visibility: View and Rendering visibility • viewvis: View visibility • rendvis: Render visibility • selectability: Selectability

Examples

1. VBScript Example

    NewScene

    CreatePrim "Sphere", "MeshSurface"
    Translate , -6, 0, 0, siAbsolute, siView, siObj, siXYZ, True, , , , , , , , , 0
    CreatePrim "Torus", "MeshSurface"
    CreatePrim "Cube", "MeshSurface"
    Translate , 7, 0, 0, siAbsolute, siView, siObj, siXYZ, True, , , , , , , , , 0

    SelectObj "sphere,cube"

    logmessage "Selection before hiding: " & Selection.count & " objects"
    for each obj in Selection
    logmessage "    " & obj
    next

    MsgBox "About to perform HideUnselected..."
    HideUnselected

    logmessage "Selection after hiding: " & Selection.count & " objects"
    for each obj in Selection
    logmessage "    " & obj
    next

2. VBScript Example

    ' Create a sphere, select some polygons and hide the unselected ones
    NewScene

    SetDisplayMode "Camera", "shaded"
    CreatePrim "Sphere", "MeshSurface"
    SetValue "sphere.polymsh.geom.subdivu", 30
    SetValue "sphere.polymsh.geom.subdivv", 30
    SetValue "sphere.Scene_Material.Phong.diffuse.blue", 0
    SetValue "sphere.Scene_Material.Phong.diffuse.red", 1
    SetValue "sphere.Scene_Material.Phong.diffuse.green", 1

    ActivatePolygonSelTool
    SelectGeometryComponents "sphere.poly[168,169,170,198,199,200,258,259,260,288,289,290,133,134,162,163,191,192,221,222,251,252,282,283,313,314]"

    HideUnselected

See Also

HideAndUnselect | ToggleVisibility

Autodesk Softimage v7.5