I’m beginning development work on a scientific visualisation and analysis extension for Blender 2.70 using the PyNodes API (creating a custom NodeTree). I’m having trouble choosing the best way to transfer data between nodes, which I haven’t seen documented consistently anywhere.
I can think of two options, neither of which seem satisfactory:
- Accessing input socket links from the node itself on each update, for which purpose I’d have to create a dummy “input socket” class with no associated properties which seems a little hacky (although I’ve seen dummy input sockets used in blendgraph)
- Traversing the NodeTree links list, copying input socket data to their respective output sockets and updating nodes sequentially
Is there a specific method for data transfer between sockets that the API is intended for? I haven’t managed to find any definitive examples so far.