-
Oh… and… Using expression to offset time-remap from a slider
Following on from my previous post about setting up a ‘Tree’ with a load of leaves going through different seasons…
I have a ‘tree’ with a lot of leaves (LEAF.COMP). Within this comp is animation that takes the leaf through SPRING SUMMER AUTUMN and WINTER.
I have currently laid out the leaves around the tree and want to offset groups of them so that the animation is staggered.
I have a layer with an expression slider (SEASONS SLIDER).
With this I want to the LEAF.COMP to take the slider value as its time-remap value but also be able to offset it it to different degrees.
I will have about 5 groups of leaves each with differing offset values (groupA LEAF.COMP offset by 4 frames, groupB LEAF.COMP offset by 7 frames etc…).
The expression which I am using is below
thisComp.layer("SEASONS SLIDER").effect("Slider Control")("Slider").valueAtTime(time)BUT (even without any offset) when the SEASON SLIDER is a certain value it seems to be
SEASON SLIDER LEAF.COMP time-remap value
10 250so I am dividing it by 25
thisComp.layer("SEASONS SLIDER").effect("Slider Control")("Slider").valueAtTime(time)/25However I am having a stupid mental block about offsetting it as
thisComp.layer("SEASONS SLIDER").effect("Slider Control")("Slider").valueAtTime(time)/25-10obviously doesn’t work and
thisComp.layer("SEASONS SLIDER").effect("Slider Control")("Slider").(valueAtTime(time)/25)-10(adding brackets around the valueAtTime(time)/25 bit) gives me an error…
Can anyone advise me on how to offset this!