This custom script should update/work/dothething every time an input is changed/updated (expired).
It is a sort of “like data dam but with parametric update button”.
Also, as it send data to an un-connected Data parameter this let recursive programming (like, indeed, data dam).
Data is volatile
*, so “not internalized” in the parameter. If you disable/enable the parameter or reload the file it lose the data.
But should be fine during grasshopper execution.
“ID” (Guid parameter) is needed to store the guid of the target Data parameter through Save/Open file.
Connect and use it as seen in the gif:
DDD V1.gh (6.8 KB)
It can work with button instead of boolean toggle…
Hope it helps
* because of performance reasons, but also because I wasn’t able to set persistent data for that situation… XD