3

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')
someonewithpc
  • 12,381
  • 6
  • 55
  • 89
arsenbonbon
  • 131
  • 3
  • 1
    Tempted to say this is a duplicate because the answer is the same, although the question is different: http://blender.stackexchange.com/questions/556/pynodes-the-bare-basics – Greg Zaal Oct 15 '14 at 09:35

0 Answers0