Help iterating through a DAT array with expressions

Hello!

Intermediate Touch User - cant seem to get this solved

Im assigning multiple movieFileIn devices different paths, being pulled by a DAT table.

My struggle - Using an expression:

op(‘movies’)[int(me.parent().digits),1].val

warning says it needs to be a string, but im trying to use the parent object number to iterate through the DAT array to pull the paths. adding [str(int(me.parent().digits)), 1] also does not work.

ive used this expression with success in POPS objects to iteratively translate points for layout, and regularly using an array from a dat to find a path in TOPS works.

Doesnt seem to work when using a touch specific constant(?) inside of an array within a path finding value.

Is there a better way to try to do this? I thought maybe I could pull channel values from a CHOP array, but then im running into the same issue of using referencing expressions inside an array.

Arrays inside of arrays!

Thanks so much for any input / help :slight_smile:

I’m pretty sure I can help you with this quickly if you can share your file with an exact description of where to find the expression and what it should return.

It’s just hard to debug it from a text description… Post here or send to ivan@derivative.ca.