I want to make custom node that can be used in compositing nodes. I stuck in part when I need to pass color value (and do some operation on that) from input to output socket.
def init(self, context):
inp = self.inputs.new('NodeSocketColor', "Input 1")
inp2 = self.inputs.new('NodeSocketColor', "Input 2")
out = self.outputs.new('NodeSocketColor', "Out")
out2 = self.outputs.new('NodeSocketColor', "Out 2")
- I don't know how to set up links (inp -> out, inp2 -> out2). Outputs are always connected to the first input socket.
- How to change value before outputting.