VisibleObjects

Returns the identifiers of all objects that are visible in a specified view.

Syntax

rhinoscriptsyntax.VisibleObjects(view=None, select=False, include_lights=False, include_grips=False)

rhinoscript.selection.VisibleObjects(view=None, select=False, include_lights=False, include_grips=False)

Parameters

view

Optional.  String.  The title of the view.  If omitted, the current active view is used.

select

Optional.  Boolean.  Select the objects.  If omitted, the object is not selected (False).

include_lights

Optional.  Boolean.  Include light objects.  If omitted, light objects are not returned (False).

include_grips

Optional.  Boolean.  Include grips objects.  If omitted, grips objects are not returned (False).

Returns

List

A list of Guids identifying the objects if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

object_ids = rs.VisibleObjects("Top")

if object_ids:

    for id in object_ids: print "Object identifier:", id

Also See

IsView

IsVisibleInView