Windows. version 099 2017.13460
Attached is the file I’m testing this on.
Not sure if this is a bug or a misunderstanding on my part.
I have a script CHOP inside of a Base container.
Its onCook() method adds 1 to an entry of a table DAT on the same level, so every time it cooks, this value should increase by 1.
As input to the Base I have a button.
So, Button -> Base[In->Script->Table->Out]
Whenever I click the button, I see no sign of activity, until I dive into the Base node, then I see the updated value. If I click multiple times on the button and then dive in, I only see the value increase by 1, not the number of times I clicked on the button.
Likewise, if I attach a node to the script that is always cooking, for example Clock, then what happens is that whenever I copy and paste the Base, the new one does not cook until I dive in to it, then it cooks for the rest of the session. If I restart Touch, I have to do this with every Base container to get their script CHOPs to start cooking. I can even verify with the Performance monitor that cooking does not happen until I dive in.
ScriptCHOPInBase.1.toe (4.81 KB)