Grasshopper

algorithmic modeling for Rhino

I was fallowing this tutorial: 

https://www.youtube.com/watch?v=bRps0aKVq4Q&index=89&list=U...

and this much of the code:

import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino

if active:

    for i in range(len(geo)):

        geo_id = geo[i]

        sc.doc = ghdoc

        doc_object = rs.coercerhinoobject(geo_id)

        geometry = doc_object.Geometry
        attributes = doc_object.Attributes

when i test it it returns:

Runtime error (MissingMemberException): 'NoneType' object has no attribute 'Geometry'
Traceback:
line 17, in script

I DID CHANGE TO LIST ACCESS which is the most common problem. So i don't know what is wrong? I'll post the file below.

Views: 783

Attachments:

Replies to This Discussion

Select ghdoc

Attachments:

Thank You so much i knew it had to be something simple but I am new to this so. Thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service