Expression for animating text on tight spiral
I am trying to animate a long string of numbers around a tight Archimedean spiral mask path by using this expression I found…
Source text:
rate = 100; // characters per second
txt = “31415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602……..and on and on”;
txt.substr(0,timeToFrames(time*rate*thisComp.frameDuration));
The path is set to “reverse” with text aligned right so the numbers appear at the centre and fill the spiral.
The expression works for me, but all the text disappears once a certain number of characters have appeared on the spiral:
https://drive.google.com/file/d/1ivuzj0gxyeYIkJSeYAnmlQ1Foldf0G-5/view?usp=sharing
My first and last margins are set to 0.0 and I haven’t used a text box – I rechecked the the text layer is set as point text and not a paragraph.
Is there any way I can fix this so the numbers can keep filling the spiral without disappearing?
I'd appreciate any help.
