bpy nodes inputs and outputs problem

Hi !
I am working on a node, created in bpy, but i encountered a problem, which i can’t solve… :smiley:
Can you help me to solve my problem ? Plz

In bpy, to create an input or an output we have to write that :


class MyCustomNode(Node, MyCustomTreeNode):
......
def init(self, context):
    self.inputs.new('NodeSocketColor', "Image")
    self.outputs.new('NodeSocketColor', "Image")
....

But, i can’t find any documentation about that. I need to use ‘NodeSocketColor’ or another type of input and output ? If the input is an image ?

Then, i tried to get the input information with

self.inputs["Image"].get()

but it raise an error because i need an argument… So i don’t undestand how it works… :no:

Thank you in advance