It was working before, when i had this code:
selLayers[i].startTime = (selLayers[i].inPoint = selLayers[i].startTime) + i * offset;
But now that i have changed the “=” to “-=” it becomes static, i mean, if i click on the “Execute button” of the script it works but that’s it, it doesn’t add a new value to the already sequenced layers, because there is no new value that can be added, it works just fine but only once, if i want to add more frames to that sequence i need to type a new number and click again on the execute button, and i think that this workflow is a little time consuming (i mean, having to type a new number every time i want to add more frames to the sequence instead of sequencing that number of frames that i’ve already wrote every time i click the button). I now that it’s possible to achieve what i’m asking for because i have an script that already does that, but is an jsxbin file so i can’t look at the code, i feel like i’m getting closer but i don’t know what should i do.
Thanks again for all the help Dan!
Maybe you will tell me: why don’t you use that script that you already have? And that’s because this “Sequence Layers” is just one of the functions than i’m trying to incorporate to a very complete and useful script for all my subscribers at Eje in Motion.
I’m really new to writing scripts but i know that i will achieve it, and i’m having really fun, it feels like magic when you click that “play” button and see the Script doing exactly what you want it to do.