Grasshopper

generative modeling for Rhino

Can anyone explain why the below code is not working?  I'm wondering if this is bug in the new Python component.  The "a" is reading an object id, but the battery is outputting a null value.

Views: 197

Reply to This

Replies to This Discussion

Code (assuming you have a curve drawn on the default layer in Rhino space):

import math
import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino
sc.doc = Rhino.RhinoDoc.ActiveDoc

a=rs.ObjectsByLayer('Default',False)
print a

Any progress here?  As of now all outputs are null

Hi Erick. It might help:

Thanks Mostapha!

RSS

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service