-
Use slider expression relative to start of subcomp
Hi there
I am trying to reduce duplicated animations and I have a subcomp where I have different elements, that should be hidden or shown depending on a slider input in my parent composition.
I thought I could just change a slider expression input in my parent comp over time and use different instances of the subcomp to differ the outcome.
Now the problem is, that my subcomp is taking the slider value always at the given timecode and not the actual value at that time.
This is a bit hard to understand, so I will make an example:
I have a parent comp: PARENT which has a CONTROL slider.
the slider in the parent increases over time:0s-5s: CONTROL with value 1
5s–10s: CONTROL with value 2now in my CHILD comp I have an expression where I toggle opacity:
if (comp(“PARENT”).layer(“CONTROL”).effect(“Slider Control”)(“Slider”) < 2) {
100
} else {
0
}Now I would have expected if I use two instances of my CHILD comp and let them start in two different places, that they would reference the slider value AT the time in the parent comp.
But unfortunately my CHILD comp is using the slider value at the same timecode, independent of where the CHILD comp is positioned…Now with this behaviour I think I can’t have a slider controlling how my CHILD instance looks like, which is a bit of a bummer…
Or do you have an idea how to either let the CHILD comp reference the value at the correct timecode or how to use a controlling mechanism like this in general?
Cheers and thanks a lot in advance
JEdit: Sorry creative cow has had problems ulploading my screenshot so I accidentally posted twice.. 🙁
Also I deleted the post from my profile, but it still appears in here… :((
Sorry, there were no replies found.