-
Generate an array for a drop-down list using n values
Hi everyone,
I’ve been struggling with an expression and would be really grateful if someone could point me in the right direction. I want to create a dynamic drop-down list that’s linked to the number of layers in a specific comp. The idea is that if I add or remove layers in a comp, my drop down list should change accordingly.
I know I need to start with: comp(“Comp 1”).numLayers and then create some sort of for loop to populate the drop-down array but actually rigging it together has me stumped.
Does anyone have any ideas on where to start or links to useful resources?
Thanks,
Doc