Hi guys
For those who have older versions, here is what I ended up with and I am quite satisfied:
Instead of writing the expression into “timeremap” I used the effect “timewarp” which also has an option for “source frame”. For this I wrote Dans expression, (but without the Math.round for smoother results.)
L = thisComp.layer(“luma”);
p = L.fromComp(toComp(transform.anchorPoint));
s = L.sampleImage(p,[.5,.5],true);
luma = rgbToHsl(s)[2];
maxFrame = 300;
f = maxFrame*luma;
framesToTime(f)
The one problematic difference is, the effect time warp doesn´t look in-between frames in the nested comp, like “time remapping” does, so you will not have the same smoothness, but here is a little trick:
Just use “time-remapping” as well without any expression, and give it a lot of space. For example if your nested comp is 30 Frames long, span this 30 Frames with time Remap over a space of 300 Frames, so the “Time Warp” effect has a lot of real in-between Frames, (not calculated ones through FrameMix or PixelMotion).
Give it a try..