-
Expression stops working once I add keyframes
I’ll try my best to explain what I am trying to achieve, how I have set about it and the problem I am having but if any more info is needed please ask.
Basically I have a selection of images in a subcomp that I want to be able to switch on and off at a time of my choosing and in any order I select.
I added all of the images into a subcomp, I set the length of this to a single frame.
In my main comp I enabled time remapping on the subcomp and stretched it to the duration of the main comp.
On each of the layers within the subcomp I added an expression that controls the opacity of the layer from a checkbox on a control layer in the main comp.
The expression I used was the following:
if (comp("MAIN").layer("CONTROLS").effect("IMAGE1")("Checkbox")==1) {100}
else {value}Now everything seems to work fine, when I check the box the corresponding image appears. I can select as many as I like in any order I like and it works how I imagined it should do.
The problem starts as soon as I add a keyframe to any of the checkboxes. The value for the checkbox changes still, but the state of the image no longer changes.
I’m not sure what I am doing wrong and I know it could be something simple but I cannot for the life of me find out what the problem is.
Any help would be greatly appreciated.