-
Trigger Time Remap with a Checkbox Control
Hello! I was wondering if anyone could help me out.
I am working on a UI motion for an app. I am dealing with a lot of different components that live in a lot of different precomps. The app is still being designed so it is important for me to be able to
make changes fairly quickly as I go along hence I have expression controls that reference different precomps for things like scrolling, swiping, etc.
There is one thing that I can’t quite figure out. For example, I have an animated icon that I want to set up in a way that I could trigger from a different comp using a checkbox control.
My animation is 0-40 frames and I would like to reference time remap for that comp. So if the checkbox is unchecked it needs to be on frame 0, when turned on it needs to animate from 0 to 40 and hold.
My knowledge in AE expressions is very basic so at the moment I have this (which is set up on time remap on the icon precomp):
if (comp(“2.1a. Creator”).layer(“ICON_CTRL”).effect(“ICON_CTRL”)(“Checkbox”)== false) {0} else {40}
This of course doesn’t work because when I check the box it just jumps to frame 40, what I need it to do is to animate from 0 to 40 and stay on 40.
I have found some other discussions here with a very similar question, but I can’t seem to be able to apply those expressions to my comp.
Any help would be really appreciated.
Thanks!