algorithmic modeling for Rhino
Hi all,
I'm trying to stop my custom component from running unless one of the input is "True". However, if I am changing an input boolean toggle from True to False, it will reevaluate and the output will be lost.
Effectively, this means I can't use the Button component to rerun the analysis in the component.
Is there a way to resolve this? I have looked at this thread: http://www.grasshopper3d.com/forum/topics/data-be-dammed but unfortunately there is no answer there.
Tags:
The problem is that your component expires before you know what the new data will be. So there's no way to securely decide at expiration time whether you really want to expire or whether you want to ride the next solution out and keep your old data.
There are some solutions:
To "Override the attributes"...
Wouldn't this be a compromise?
Its the same component both times...
NOTE: used ZUI-Interface to toggle between Input and Button...
(source < note inherentation "GhComponent_ToggleSwitch")
Greets
Mark
Thanks, caching the results will be fine for now.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by