Repost, seems the script got lost!
Not exactly sure if this is what you need, or if you still need it.
But I’m sure it will be of use for someone.
Had a problem where I in precomps needed to get values from the main timeline where they recide.
Wrote this script and it works for me (all precomps needs a unique name)
Hope it helps (someone), peace.
https://www.vex.se
Script, in the precomp where you need to get value (recides in main timeline):
————————————————
timeline_time = comp(“Main_Timeline”).layer( thisComp.name ).inPoint + time
val = comp(“Main_Timeline”).layer(“Audio Keys”).effect(“Bass Keys”)(“Slider”);
val.valueAtTime(timeline_time );