This is a follow on from the question here:
Animation nodes loop text problem
I am trying to animate the opacity fade of the text object and will use a material's mix shader to set it to transparent BSDF.
The problem I am having is how to trigger this fade-in time in synch with the timing loops set up for the text.
The text element will print (in a typewriter style) for the amount of frames designated by its character length, then hold for a time (designated by its padding), and during this hold time the text should fade out.
I was initially going to approach this problem thusly...:
1) The material output, with a mix shader factor selected, has 21 as its max, which is the equivalent to full opacity. How can we convert this to a 0>1 slider as opposed to a 0>21 scale?
2) How can we trigger it to fade from 1 to 0 starting at the point that the text length is reached? ( possibly use get element list node ouptuts added together to get the total wait time for each element then PLUS the padding time, before the next cycle kicks in)
3) How can we ensure the animation time from 1 to 0 is in sync with the time the text is present on the screen, (perhaps using the padding number here)
...then my brain exploded. Hope you can help!
Blender file here: