Grasshopper

algorithmic modeling for Rhino

Hi,

I just updated Rhino yesterday. My grasshopper definition using Python components are giving me error messages that did not exist prior to the update. I am using the Sticky dictionary in my components and as an example have the following code:

import scriptcontext as sc
sc.sticky["check"] = 1

This gives the error:

Runtime error (MissingMemberException): 'ScopeStorage' object has no attribute 'scriptcontext'
Traceback (most recent call last):
AttributeError: 'ScopeStorage' object has no attribute 'scriptcontext'

What are some solutions to this?

thanks,

Jason

Views: 899

Replies to This Discussion

Steve has updated the Python component as well, perhaps that might help with your error: http://www.grasshopper3d.com/forum/topics/python-component-updated-...

Edit: Just realized that you wrote that you updated Rhino and not GH. In which case my suggestion would probably not help much. Apologies.

Thanks for replying though. Somehow when I restarted Rhino, the error disappeared. I am curious why this occurred though.

thanks,

Jason

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service