First of all - thanks! This works.
I'm not quite sure about the whole code could you elaborate a bit? I see that we loop through all the images (won't this cause some issues with a lot of images?). Then I'm not sure about the
line...couldn't we skip that?
And then we get to the atl image which corresponds to the image we want and the whole duration is changed - although I would still appreciate a more detailed explanation of each piece so I can understand it even better.
Okay now that that works I come to another problem - which can perhaps be solved if I understand this code a bit better. I use a conditional image to decide which atl to run. Meaning:
Code: Select all
image animation1:
"image1"
pause 0.5
"image2"
pause 0.5
repeat
image animation2:
"image3"
pause 0.5
"image4"
pause 0.5
image animation = ConditionSwitch("variable == 1", "animation1", "variable == 2","animation2")
What happens is if I use the conditionswitch image
it won't work. I have to specify the animation1 or animation2 itself. I am guessing this is because in the function we searched the isinstance ATLTransformBase? So again, if you could elaborate a bit here that would be great!