2
$\begingroup$

I'm currently trying to create custom nodes for the cycles rendering engine, in python. So far, I can add the node in the node editor with inputs and outputs. What I don't understand is how to set the value of the output, for instance.

This is what I have so far:

class OutputColor(Node):
    '''Output Color'''

    bl_idname = "outputcolor"
    bl_label = "Output Color"

    def init(self, context):
        self.inputs.new('NodeSocketColor', 'Color')
        out = self.outputs.new('NodeSocketColor', 'Color')
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.