I am referencing a specific row in a Table DAT like this
op(‘shadowCasters’).col(0)[1]
Instead of the row value of 1 I want to make this value dynamic referencing the channel 0 value of a specific CHOP.
How to accomplish this?
I am referencing a specific row in a Table DAT like this
op(‘shadowCasters’).col(0)[1]
Instead of the row value of 1 I want to make this value dynamic referencing the channel 0 value of a specific CHOP.
How to accomplish this?
CHOP values are floats so you’ll need to cast those as integers in your expression:
The expression here is:
op('table1')[int(op('constant1')['row']), int(op('constant1')['col'])]
If you wanted to use the syntax you’ve already started it would be:
op('table1').col(0)[int(op('constant1')['row'])]
Thanks for the detailed feedback!