In Dynamo code block, can i return a variable input by Functions

Seems like what you’re after is something along the lines of a class instance’s fields and properties that you can read from and write to. Design script functions don’t have any such “memory” however. Implementing such functionality and making it update dynamically is easier said than done. There’s a great package that can already do that, tho it hasn’t been updated in a while:

With a bit of creative thinking, you can make a “lowcost” version that uses files as buffers and the dynamic update functionality of the “File.FromPath” node, but you’ll also have to handle the serialization and deserialization of the data yourself:

2 Likes