-
Is it possible to make an array available to other layers via expressions
Hi everybody
I have written an expression to write an array of non repeating values lets say from 1 to 20 into an array like in the attached code (Put this to an expression slider control)It works pretty well. But how you can see, the only possibility I saw for saving these values and make them accessible was by connecting each value to a specific frame in the time line(“my_array[t];” access it via the “valueAtTime” expression)
But this can lead to very long expression calculation times, because every frame has to calculate all the calculations from scratch.
Is there a way, other layers can link to specific values of a more than 4 dimensions array via expressions directly.
Something like:
thisComp.layer(“Null 1”).effect(“Slider Control”)(“Slider”).var(my_array[5]);Hope this is clear enough. Otherwise please ask.
thanks so much.
tot = 20;
t = timeToFrames(time);
pool =[];
my_array = [];if (t<1||t>tot){123456}else{
seedRandom(1,true);
for (i=0;i