I understand that it’s a different way to think:
– you are positioning in a world coördinate system,
and what for the layer might look like simply 1000px in Z
could – depending on the layer’s rotation – actually be 1000px in X… or 500 in Z, and 866.025403784 in Y…
I don’t think I understand what you would want an expression to solve?
Do you want to keyframe Z-position as if it’s in local space ?
For me personally that doesn’t click… for example, what would happen if you:
– start at 0,0,0
– push the layer forward 1000px in Z,
– then rotate 180° along Y,
– then push again “forward” 1000px in Z…
Do you want it to be back where it started from, but with a position keyframe of 0,0,2000 ?
Sure, I could write an expression that handles that… but does that make sense ?