There has to be a way to vastly simplify the code, but it’s hard to tell from looking at it what it’s supposed to be doing exactly. There seem to be gaps, like from 30 to 60, and from 210 to 240 where no action is defined. If you could describe what you need it to do, it might be easier to start there.
You mean %90 ? % is the modulus operator in JavaScript. It returns the remainder from a division operation. So, for example 108 % 90 would give you 18. In this case, it keeps all your angles in the range from 0 to 89.9999… degrees.
I guess you could use a character in the spreadsheet that wouldn’t otherwise appear in your text (like “|” maybe) to indicate a carriage return and then replace it with an actual carriage return in your text expression.
To get it to work for duplicated comps, you need to do the duplicating in the project bin (not as duplicated layers in the main comp) and make sure each copy has a unique name.
Ah. If you want it to ease, you need to calculate the offset due to all the prior markers, as well as the offset that includes the most recent marker. Then you need the times for the most recent marker and the one before that and set your ease up to use those times and offsets. Something like that.
Did you catch the edit I made to my last post? It originally still had the i++ from your loop in there, which would make it skip layers. I changed it, but you may have seen the pre-edit version. I’m hoping that’s the issue.