Grasshopper

algorithmic 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: 677

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

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service