I can't seem to figure out how to tell if one of the parameters of a script has been changed for the first time. I thought I remembered an "OnEvent" function but I can't seem to find it any more in the Script Function Reference.
So I have a popup window in my Object Info Palette where the user can select a symbol from the list. If the user selects a different symbol I need to change some of the default parameters within the PIO. After that the user can adjust those defaults as needed, but these defaults are only changed by the script if the user selects a different symbol from the list. If the script has to be executed again, but the symbol has not changed then the defaults will not reset. Make sense?
@twkyou are correct--the routine I mentioned will retrieve the previous value, not the current value. It's been a while since I investigated, and I think we indeed don't have a way to access a value of a widget that's not bound to a parameter field.
You *may* be able to dynamically update the plug-in's record format and bind widgets to the record fields (I know you can definitely do the latter). The SDK has mechanisms to work with dynamic parameters this way, but I've never tried to do it in VS.