Grasshopper

algorithmic modeling for Rhino

I have cracked a mystery of mine (Actually nothing very amazing) about storing data into a shared variable in Grasshopper. 

 

The idea is seen in the Grasshopepr Tools in C# by Giulio piacentino called Buffer:

http://www.giuliopiacentino.com/grasshopper-tools/

I've got the line of code from David's Mesh Deform Script

http://www.grasshopper3d.com/forum/topics/store-a-mesh-in-a-temporary

 

The trick is to declare the variable in the lower part of the script with the following line:

Private Shared i As Integer

 

i is whatever your variable name want to be.

Integer could be any data type you need.

 

Cheers

Victor

 

Views: 625

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service