Reset value when input is changed

I am new to using Python script in Grasshopper.

There are 4 value list in terms of Yes/No in canvas. The output of a python script is first set to true and when any of the value lists are changed, the output should go to false and then immediately go back to true (which is intended to be its original value). Can anyone help me with this?


Hi @arvind

Not sure how to to do it in Python, but if you make a component in C# (inherit from GH_Component) you can override the method ValueChanged which detect a changes in params, so you could reset the output by calling ExpireSolution for the component, or set directly the output param VolatileData

Hope it help you.

Best Regards