Trying to get an animation to run, am I doing it right

Hi All,

I would like to run an animation of three images, flipping once a second. I just cannot seem to make it work.

I’ve put the following into the transparency box and it does not fire.

Image 1
$#Dus#=1||$#Dus#=5||$#Dus#=9||$#Dus#=13||$#Dus#=17||$#Dus#=21||$#Dus#=25||$#Dus#=29||$#Dus#=33||$#Dus#=37||$#Dus#=41||$#Dus#=45||$#Dus#=49||$#Dus#=53||$#Dus#=57?100:0$

Image 2
$#Dus#=2||$#Dus#=4||$#Dus#=6||$#Dus#=8||$#Dus#=10||$#Dus#=12||$#Dus#=14||$#Dus#=16||$#Dus#=18||$#Dus#=20||$#Dus#=22||$#Dus#=24||$#Dus#=26||$#Dus#=28||$#Dus#=30||$#Dus#=32||$#Dus#=34||$#Dus#=36||$#Dus#=38||$#Dus#=40||$#Dus#=42||$#Dus#=44||$#Dus#=46||$#Dus#=48||$#Dus#=50||$#Dus#=52||$#Dus#=54||$#Dus#=56||$#Dus#=58||$#Dus#=60?100:0$

Image 3
$#Ds#=3||#Ds#=7||#Ds#=11||#Ds#=15||#Ds#=19||#Ds#=23||#Ds#=27||#Ds#=31||#Ds#=35||#Ds#=39||#Ds#=43||#Ds#=47||#Ds#=51||#Ds#=55||#Ds#=59?100:0$

I’ve even tried with just the following, but cannot see it fire in the web gui.

$#Ds#=3?100:0$

What am I doing wrong?

Paul

Ok, I found my answer right after posting this, using this thread I have what I need.

@mrpaulryder have a look at this one, code by @Mellin

Code here by @Mellin should help

Ok, so that’s 18 frames in 30fps.

That would be 18 frames for 0.6 seconds, 1 frame in 0,02 seconds.

(((#DWE#/(18/30))-(floor(#DWE#/(18/30))))*(18/30))
will give you time between 0 and 0.6 seconds, or after some simplifications:

((3/5)(((5#DWE#)/3)-(floor((5*#DWE#)/3))))
Put all 18 photos as sperate layers (later ones higher) and add this to each image’s transparency setting:

$x>0.02*y?100:0$
Where x should be that long function and y is the number - 1 of your frame.

1 Like

Here’s the tutorial I created using @Mellin 's advice on the calculations. You can create short animations (1 sec) or longer using the two methods described.