I'm creating a couple of tools right now that would really benefit from being able to read data from a node that is plugged into them and am wondering if there's a syntax for determining information about a node's parent and that parent node's parameters without specifying that parent node's name in the original script.
For example:
I might have six file-ins, each with a matte extracted for it and various color corrections being performed. The resulting premultiplied images are then being fed into a node with six different inputs which we'll call In1, In2, In3, In4, In5 and In6. This multisource node will perform various operations on these inputs: translate them in various ways, apply additional color correction operations, and whatever else this particular node wants to do.
I'd like to be able to reference parameters set in a final node of each parent input without having to know the actual name of that node.
Imagine something like (:In1).xPan that refers to the xPan parameter of a node plugged into input In1 of the current node. Yes, I know that '(:In1)' is not even remotely correct. It's just an example.
This multisource node is being implemented in a macro that is being hand-coded, so syntax that will only work when not included in a typical "gui-driven" script is fine: there's already a good bit of that in this project.
I would eventually like to be able to make nodes that automatically traverse their parent tree collecting additional user-defined parameters from other nodes - but this will only work if I can traverse the tree by one node first.