Code: Select all
[Variables]
Zero=0
CatID=00
PoseID=01
FrameNumber=8
[MeasureZero]
Measure=String
String=#FrameNumber#
IfCondition=MeasureZero>9
IfTrueAction=[!SetVariable Zero ""]
[MeasureRandom]
Measure=Calc
Formula=random
LowBound=1
HighBound=100
UpdateRandom=1
UpdateDivider=10
IfCondition=MeasureRandom>20
IfTrueAction=[!SetVariable FrameNumber 1]
IfFalseAction=[!SetVariable FrameNumber 8]
DynamicVariables=1
[ImageNumberCalc]
Measure=Calc
Formula=(Counter % #FrameNumber#)+1
DynamicVariables=1
[Cat01]
Meter=Image
ImageName=#@#Images\Cats\#CatID#_#PoseID#_#Zero#[ImageNumberCalc].png
PreserveAspectRatio=1
DynamicVariables=1
What I want to achieve is the following: the cat sometimes play a grooming animation, but it always plays the animation fully before going to a static pose. It should also be possible for the cat to groom itself twice, but I wouldn't mind abandoning the idea if it proves itself too difficult to achieve.
I know I can just increase the RNG update divider, but then the gif would play multiple times, and it wouldn't be guaranteed that the cat would complete its animation cycle.