Skip to main content
This topic has been closed for replies.
Correct answer Dan Ebberts

I add expression and work well but when add the keyframe to switch not work again.


It looks like you're also using time remapping to get the alternate poses. I'm not sure how that affects things, but I suspect it's part of the issue.

1 reply

Mylenium
Legend
July 8, 2023

I have no idea what you are talkinbg about. According to your screenshot and the code displayed therein evcerything works as it should. Your checkbox is active, so everything is visible. If you want something else, you need to explain better.

 

Mylenium

Known Participant
July 8, 2023

hello, I upload a video about a problem.

I draw two faces with two facial expressions and switch between them by expression in opacity connect with a checkbox 

so when I make a keyframe to switch the first keyframe work and the second keyframe does not work.

Dan Ebberts
Community Expert
Community Expert
July 8, 2023

Your examples don't show where you have your Head comp situated time-wise in the Final-01 timeline. If it doesn't start at time = 0, you'll have to compensate for that with something like this (not tested, so it might not be exactly right):

C = comp("Final-01");
ctrl = C.layer("Main Controller").effect("Reaction")("Checkbox");
L = C.layer(thisComp.name);
ctrl.valueAtTime(time + L.startTime)