"I see, I just managed to make a static field change in a scripting component and watch it update in a copy of it.
I can understand why I've never seen this happen before. If the field is reassigned every time a script instance is run you…"
"No practical use of mouse input within Grasshopper? How do you reference geometry? :P
I would say Grasshopper not being more integrated with the viewport (and responding to things like selecting objects, moving the camera, etc.) is a feature…"
"Isn't the autogenerated Script_Instance class a singleton? Every time you edit the code it creates a new different type with a single instance.
Still I agree, the reason for using static fields was for laziness (not as in delaying…"
"A hybrid approach could be to run your simulation asynchronously in another thread and have it constantly update a field in the scripting component. Parallel to this, expire the scripting component in regular intervals or whenever it can and have it…"
"Can you post your code? async and await do work in scripting components. You can't use await in the RunScript method since the signature is hardcoded and you need to add the async keyword, but you can use them in your methods…"
Join us for the AA Visiting School Madrid 2016. Applications are closing very soon. Info:Trans-computational membranes 4.0 will continue exploring computational design methods through the use of digital-analogue experimentation. With the focus on flexible materials, we have developed large scale pavilions and installations during the last three years of research, seamlessly integrating physical simulations into the design process. This has facilitated the development of Open Source generative…See More