Returns the identifiers of the objects that were most recently created or changed by scripting a Rhino command using the Command function. It is important to call this function immediately after calling the Command function as only the most recently created or changed object identifiers will be returned.
rhinoscriptsyntax.LastCreatedObjects (select=False)
rhinoscript.selection.LastCreatedObjects (select=False)
select |
Optional. Boolean. Select the object. If omitted, the object is not selected (False). |
List |
A list of Guids identifying the most recently created or changed objects if successful. |
import rhinoscriptsyntax as rs
rs.Command( "_-Circle 0,0,0 10" )
rs.Command( "_-Circle 10,0,0 10" )
rs.Command( "_-Circle 20,0,0 10" )
objs = rs.LastCreatedObjects()
if objs:
# Only the last circle will be selected
rs.SelectObjects( objs )