InvertSelectedObjects

Inverts the current object selection.  The identifiers of the newly selected objects are returned.

Syntax

rhinoscriptsyntax.InvertSelectedObjects (include_lights=False, include_grips=False)

rhinoscript.selection.InvertSelectedObjects (include_lights=False, include_grips=False)

Parameters

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 newly selected objects if successful.

Example

import rhinoscriptsyntax as rs

rs.GetObjects("Select some objects", select=True)

objs = rs.InvertSelectedObjects()

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

Also See

SelectedObjects

UnselectAllObjects

UnselectedObjects