Sorry, I'm not good at explaining things though texts lol
Hopefully this picture can explain better what I'm trying to achieve.
I want to link the text layers to ROTATE null object but I want the keyframes to start at the beginning of each of text layer. This way, I won't need keyframes for each text layer and I can adjust the timing easier later. I know the script lines to link them to a null object but I can't figure out the line to tell the keyframes to start at the beginning of the layer instead the null object in the timeline.
I think I just made this more confusing lol
I think you could do that with an expression like this:
thisComp.layer("ROTATE").transform.xRotation.valueAtTime(time-inPoint)
Dan