Triggering a null object expression via inPoint of an attached child layer
I sure hope I'm barking up the wrong tree with my approach and that there's an easier way to do this. All my current attempts are failing. I've got a bunch of layers parented to a null object so that I can use the null object to scroll them up the screen. I want to incrementally scroll as the composition time hits the inPoint of each child layer.
In the transform position expression of my null object I have the following:
//basic example, select the index of either layer 4 or 5 depending on if the time is before the first one's inPoint or not
startIndex = (time<thisComp.layer(4).inPoint) ? 4 : 5;
//use the inPoint of the currently selected layer based on the statement above
startTime = time - thisComp.layer(startIndex).inPoint;
//only scroll up
ease(startTime, 0,0.45, value, [value[0] ,value[1]-100]);
I can verify that during playback, the correct startIndex gets selected over time. I can also verify that startTime hits 0 at the inPoint of layer 4, then goes below 0 and hits zero again at the inPoint of layer 5. However, the value graph (and animation) only ever execute the Ease function for the inPoint of layer 5 (the default of the if statement). Any ideas?
Good thing I shave my head, else I'd have already pulled my hair out.
TIA,
Roland

