-
orient one partended layer towards another parented layer
i dug deep in the various forums to find something that helps. I did find this expression, but this only works for non parented layers:
delta = position – thisComp.layer(“Null 1”).position;
radians_to_degrees(Math.atan2(delta[1],delta[0])) + 90I tried to incorporate this expression (which gets world coordinates of parented layers)
L = thisComp.layer(“Null 1”);
L.toWorld(L.anchorPoint)but I was not get something working, because heck, i hardly have any expreience in writing expresions myself.
Can one of you expression masterminds solve this?
regards
Neil—
Neil Stubbings
Graphic Design | Motion Graphics
https://www.stubbings.ch
—