Iterate through selected objects using ghpython


I’m trying iterate through selected objects. The print statement returns a list but the variable assignment does not.

import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino as rh

sc.doc = rh.RhinoDoc.ActiveDoc

objs = sc.doc.Objects.GetSelectedObjects(False,False)

for i in objs: 
    print i.Geometry
    a = i.Geometry



I think you will need to do this:


Thanks so much!