data be dammed - Grasshopper2024-03-29T13:06:34Zhttps://www.grasshopper3d.com/forum/topics/data-be-dammed?commentId=2985220%3AComment%3A922234&feed=yes&xn_auth=noCaching data in a component f…tag:www.grasshopper3d.com,2013-09-27:2985220:Comment:9222342013-09-27T21:31:37.813ZDavid Reeveshttps://www.grasshopper3d.com/profile/DavidReeves
<p>Caching data in a component field seems like a good alternative. I'm still curious if there's a way to achieve the same thing by preserving data within the output parameter itself though.</p>
<p>To give a bit more context, the component in question creates instances of a custom data type which are used downstream in an iterative timer-based component. I'm trying to avoid creating new instances of these objects while the simulation component is running. In other words, if the timer component…</p>
<p>Caching data in a component field seems like a good alternative. I'm still curious if there's a way to achieve the same thing by preserving data within the output parameter itself though.</p>
<p>To give a bit more context, the component in question creates instances of a custom data type which are used downstream in an iterative timer-based component. I'm trying to avoid creating new instances of these objects while the simulation component is running. In other words, if the timer component is running, output the last set of objects created, otherwise create a new set of objects and output those.</p> I don't know if you are inter…tag:www.grasshopper3d.com,2013-09-27:2985220:Comment:9221262013-09-27T18:41:05.479ZAndy VanMaterhttps://www.grasshopper3d.com/profile/AndyVanMater
<p>I don't know if you are interested in work-arounds but if you are you could simply declare a global variable that gets updated on an "if" statement and output the global variable every time. Write a simple reset button if you need to start over. </p>
<p></p>
<p>But I am guessing that you don't want the script to run if you don't need it to...</p>
<p>I don't know if you are interested in work-arounds but if you are you could simply declare a global variable that gets updated on an "if" statement and output the global variable every time. Write a simple reset button if you need to start over. </p>
<p></p>
<p>But I am guessing that you don't want the script to run if you don't need it to...</p>