My setup is very simple, I have a custom float parameter with a custom toggle. I want the user to be able to enter a value in the float parameter. But when the user hits the toggle button, I want the float parameter to be set to 0. That works. But when they uncheck the toggle, I want to the float value to return to the original value.
This is the code I am working with, I will give you python and hscript:
I think this is right. Is it? Seems to work at the base level, but is $IV the correct answer or is there something else? Also, out of curiosity, what is $IV equivalent using python? Hoping somebody can confirm this is correct or if there is a standard way. Thanks!