Grasshopper

algorithmic modeling for Rhino

Semi - Update Solution. Track previous state of updated elements.

Hi Everybody.
I am wondering if it is possible to semiupdate a solution. Let me explain myself.
I want my solution to update while I change a certain value - on a slider for instance - but I would like some of the updated elements to also keep their previous state, so I could track the change. Imagine I have 10 points that change their position depending on a slider. I would like my system to always show me the 10 previous positions of every point together with te current position. Any one thinks this is possible in GH?
Thanks a lot in advance.
R.

Views: 337

Replies to This Discussion

Is it possible, when you define a variable as new in scope. But in this case you get all position at past, Im not sure how you can get only last 10 steps. May be some static array(10)?

Jachym
You need to read/write you cached data to an external file. Have a look at this post for further info.

http://www.grasshopper3d.com/forum/topics/writing-text-files
You can actually store values in GH in between updates, without having to rely on an external file, by using a scripting component. I think in this website http://www.giuliopiacentino.com/grasshopper-tools/ there's an example that continuously updates the definition and stores keyframe values in between updates.
Thanks a lot for the answers.
Giulio's definitions are great and although I haven't been able to keep in memory the position of my points I managed to use two of his definitions to bake elements every time I changed one parameter.

I applied this thing to create a shadow study, like the one you get in ecotect. See attached.

Please, feel free to suggest any better approach.

Of course, all the credit goes for Giulio and Ted Ngai for their great work.
Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service