Iterate through selected objects using ghpython

Hello,

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

Thanks,

Dan

I think you will need to do this:

@Helvetosaur

Thanks so much!