Jason Lightfoot
09-03-2008, 04:58 PM
This model was put together to solve Nico Zahn's problem about how to put a global variable in a watchlist (in another forum thread)
In the attached model I've changed an instance of the standard watchlist to evaluate Flexscript expressions instead. It can be edited from the Watchlist option of the tools menu. The object is called WatchExpressionList inside /Tools/Watchers and can be copied between models (or saved and loaded as a .t file).
The examples I've used trigger the watch when the queue size is greater (or no longer greater) than 4, or when the global variable 'variable1' changes (I used a script window to increment it manually for testing).
Be aware that these can slow the model down quite a bit, because they fire for every event and the expressions are switched as Flexscript.
It would be nice to be able to toggle between C and Flexscript, and provide an edit window instead of typing into the table cell, which would mean some watchtable GUI changes. If I get a chance to update it with those changes I will post it here.
Jason
In the attached model I've changed an instance of the standard watchlist to evaluate Flexscript expressions instead. It can be edited from the Watchlist option of the tools menu. The object is called WatchExpressionList inside /Tools/Watchers and can be copied between models (or saved and loaded as a .t file).
The examples I've used trigger the watch when the queue size is greater (or no longer greater) than 4, or when the global variable 'variable1' changes (I used a script window to increment it manually for testing).
Be aware that these can slow the model down quite a bit, because they fire for every event and the expressions are switched as Flexscript.
It would be nice to be able to toggle between C and Flexscript, and provide an edit window instead of typing into the table cell, which would mean some watchtable GUI changes. If I get a chance to update it with those changes I will post it here.
Jason