Controlling a Keyframe Value with Expressions
I haven’t had much luck setting up the following action; could someone please explain how to achieve the following? <b style=”font-family: inherit; font-size: inherit; color: var(–bb-body-text-color);”>(A sample project is attached.)
- I have an object in my comp called ‘Square’ and a null layer called ‘Controller’ with a ‘Checkbox Control’ effect on it.
- The scale attribute on ‘Square’ has a keyframe on frame 20 with a value of ’50’ and a keyframe on frame 50 with a value of ‘100’. (A simple scale-up animation over a second (30fps)).
- When the checkbox is checked, I want the value of the second keyframe to be subtracted by 25. So, instead of going from 50 to 100, it’ll go 50 to 75.
Any help would be greatly appreciated.