I’ve added an animation to the actions dictionary for my layer to reduce the opacity to 0.0f from its current value.
The animation works just fine the first time I use it. But then, as expected, when I want to use it a second (or third, etc.) time no animation occurs. This is b/c the value of opacity is 0, setting the opacity to 1.0f fires the action which in turn animates the layers opacity from its current value (0) to 0 – and no (visibile) animation occurs.
Is there a means by which an action can be temporarily ‘turned off’ or otherwise told not to fire? That is, I’d like to be able to set my layers opacity to 1.0f without the animation taking place. Then, I’d like to be able to set the layer’s opacity to 0 (or some other vlaue) and have the action fire/animation occur.
FWIW, I’ve worked around this by not adding the animation as an action and instead just adding the animation to the layer when I want it to run.
From what (I think that) I’ve learned from Bill’s CA book and a couple other posts here @ PP, the action changes the value of the property while adding an animation only animates the change to the property (but leaves the original value intact). Correct?