FBX Selection with midi pad

Hi !
I’m very very new on Touchdesigner so i’m struggling over a simple task i guess.

Here’s the thing :
I’ve a FBX scene wich is always visible in the render , and then , i’ve multiple fbx animation [1] for the character in the center [2]
Right now the selection of the FBX is possible by rotating a knob [3] on my midi controller. Wich is fine but if i want to get from fbx 001 to 005 i’ve to go through 002 003 004.
So i want to switch this knob , to several pads. Each pad assigned to a different FBX.

What would be the network to achieves this ?
I need a final node that can send a value between 1 and 7 by pushing my different pad on the controller. This node will be exported to the rowindexstart value on the table ‘selectfbx’ [4] [5]

Thanks for your help :slight_smile:

soooo , i’ve found a way of doing it. here’s the network , it may help someone here.

I select each pad with some selects node > the math is here for the “ceiling” option to have either a 0 or a 1,2,3 etc… value and no other > the limit is here to clamp at the right value ( 1 for pad 1 , 2 for pad 2) > Math 10 is the key of the solution, it combine all the channel to one and keep the last value > the hold keep the value instead of going back to 0 if the pad isn’t pushed down > and voilaa . I can select my FBX by pressing my pads.

Seems like you have a solution, but take a look at the Fan CHOP, I believe Fan In mode is what you might be interested in… ends up doing something quite similar to what you’ve done I think.

-p

If the channels of your pads are merged into one CHOP, and the pads are momentary (Off when you release them), then you’ll need a Logic CHOP (Channel Pre-OP set to Radio) to hold the last value on, located before the Fan CHOP (set to Fan In). So it’s two CHOPs.