Hey there...,
I need to built a quite complex animation and since the lenght of a lot of things is not clear yet, i want some of the animation be animated by expressions than by keyframes.
To make it easy....i have a MaskPaint drwaing a line. This line is animated by Keyframes ("
Write On").
Now i want an eclipse mask (somewhere else in the comp) to open up when the "
write on" of the mask paint hits an certain value.
(I of course synced up the width of the eclipse mask with the hight by drawing the expression to it to have a perfect circle)Now i want a code to animate the size of the eclipse mask based on the write on value of the mask paint.
The values goes from 0 to 1.
I want for example the eclipse size 0 til the write on value hits 0.4. after that it should stay open with a certain size til the end.
I tried things like that:
- Code: Select all
if(PolylineStroke1.WriteOnEnd<0.4, 0, 0.8)
If the WriteOn Value is smaller than 0.4 than keep the size of the eclipse 0, otherwise make size 0.8Well, those nodes turn red and nothing happens. is the code wrong? or cant i take the writeon value?
Thanks for any help
Thomas