NextObject

Returns the identifier of the next object in the document.

Syntax

rhinoscriptsyntax.NextObject (object_id, select=False, include_lights=False, include_grips=False)

rhinoscript.selection.NextObject (object_id, select=False, include_lights=False, include_grips=False)

Parameters

object_id

Required.  String or Guid.  The identifier of the object from which to get the next object.

select

Optional.  Boolean.  Select the object.  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

Guid

The identifier of the object if successful.

Example

import rhinoscriptsyntax as rs

obj = rs.FirstObject()

while obj:

    print "Object identifier:", obj

    obj = rs.NextObject(obj)

Also See

FirstObject

LastObject