I’m looking for a way to get a node value of the X and Y frame position of the center of an object in a layer. I’m trying to do a 2D animated flare that has one central glare/flare effect, then others that move and scale with offsets computed with a Math node based on their distance from the 0,0 center X,Y of the frame.
Here’s my image, nodes and blend file(2.5). In the nodes screenshot, the two Value Nodes at the bottom connected to Math nodes are where I want to put dynamic X,Y values based on a layer element’s 2D (or possibly a 3D object) position in the frame (not scene space values). I want to use this for dynamic offsets using the Translate node.
Is there a way to get an X,Y value node from a 2D element or 3D object?
Ideally, I want to do this all in the compositor in 2D, so I can use this animated effect with elements from outside Blender.
Thanks for your help.
flare_nodes03.blend (101 KB)