"router" CHOP

Hi,

newbie question here.
I’m struggling to find a kind of “router” chop, which would act a bit like a switch but inverted:
one input and several outputs, the data is routed towards one of the output depending on an index entry.

I’m coming from an Isadora background, and refering to their “router” actor (if someone knows).
I would be really surprised if no such thing exist in TD.

Thanks for your time and help!

I think this thread may shed some light on how to approach this from an Isadora → TouchDesigner perspective:

derivative.ca/Forum/viewtopi … 63&p=45657

Cheers,
Rob.

thanks rob!
It indeed helps a lot! (I’ve checked the fan CHOP before but couldn’t go until the end of the process :slight_smile: )

For further research, the problem i’ve met with the solution of the post that rob linked is that the value is set to 0 when an output is not active, while i needed each output to hold the latest value it was set.

I’ve found a simple solution using python.
It could be improved by being able to dynamically change the number of outputs… next step
router.tox (982 Bytes)