I have event chop, isolate every state in separate chop channel. Chop execute (off to on). And it triggers like 99% of the time.
It works perfect if i run it in 1000fps (performance mode, draw window off)
i cant understand why this basic staff is not working
i have found source of the problem. it is not event chop, but it is the way Table to Chop works. Every time length of table changes, it fully recreate chop (even if there was channel with the same name). this way Chopexecute we see new channel with data of 1, and it has no way to see transition from 0 to 1. This is lazy way of making DATtoCHOP, because of that i cant use chopexecute… and now i have to ScriptDAT to combine 2 dat: one with data and another with empty indexes, so that length on table won’t change. And additionally i need to loop IDs, which will brake my whole project logic. Im getting disappointed with TD.
Added example file with both ways to show up the bug. EventTrigger.toe (5.96 KB)
Hello.
Every time a CHOP output is updated from within a built in node(in this case DAT to CHOP), it’s done within one step. Downstream operators aren’t updated multiple times throughout the update, just once.
I think the issue with your setup may still be the Event CHOP is not designed to produce timeslice data (history per channel).
You may have more luck, using a Shuffle CHOP (Method: Split All Samples) to create one channel per id (instead of the conversions to/from DAT tables). You can also use a Constant CHOP and Replace CHOP to create place holder values as id’s are disappearing.
(example attached)
As id’s are currently incrementing though you’ll still have to track these values yourself somewhere.
We’ve also just added callback functionality in an upcoming 99 build that will call an ‘onCreate’ and ‘onDestroy’ method that will give one direct access to this information.