Still images based animation

Ok, untile now I’ve helped about 20 people with creating animations that are based on showing up still images.
Here you have a way to do it in a nutshell:

Option 1 - untransparent images (fewer resources used - smoother)
$(#Dsm#-#Ds#)>(x*(1/y))?100:0$
x - your current frame (starting from 0 and ending with (max-1): for 5 frames per second use from 0 to 4)
y - total number of frames per second

Option 2 - with transparten images
$(#Dsm#-#Ds#)>(x*(1/y))&&(#Dsm#-#Ds#)<=((x+1)*(1/y))?100:0$
same x and y

put those codes into transparency and it should work.

Eg.:
3 frames (3 iamges):
1:
$(#Dsm#-#Ds#)>(0*(1/3))?100:0$
2:
$(#Dsm#-#Ds#)>(1*(1/3))?100:0$
3:
$(#Dsm#-#Ds#)>(2*(1/3))?100:0$

3 Likes

@Mellin thanks so much for helping everybody! Maybe we should create a section about this in docs.facer.io?

2 Likes

If you want to, go for it.
It would be an honor.

1 Like

@Mellin do you want to submit a contribution to Basic Recipes | Facer Documentation?
We might split it out into a new Advanced Recipes section or re-organize this section to be a bit more manageable and allow for easier submissions.

1 Like

That would be great!