View Single Post
Old 06-18-2017, 01:59 PM   #5
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 4,171
Default

Personally I get the usefulness of having the integer count the number of times it has been called and then removed - as this would help nested functions and recursive function calls where you may have disable updating called at the top of a function and then enable at the bottom.

But having a simple true false means the first time false is called - screen updating gets enabled when you may not want it to be (and you'd need to add extra code to prevent this).

However - I agree that maybe it should persist across a deferred loop, and possibly get round the problem X-Raym pointed out that if an error occurs in the script (unhandled - not that I've had any success handling errors in Reascript :| ) - then reaper could automatically re-enable updating in the error reporting code.
__________________
Projects - Reascripts - Lua:
Smart Knobs 2 | LBX Stripper | LBX Floating FX Positioner
Donate via Paypal | LBX Tools Website
lb0 is offline   Reply With Quote