Skip to content

Latest commit

 

History

History
 
 

plugins

# Building Custom Nodes:

# Attributes are required to be named exactly as the keyword arguments passed to the constructor.

#!/usr/bin/env python
from SceneGraph import options
from SceneGraph.core.nodes import DagNode


SCENEGRAPH_NODE_TYPE = 'custom'


class MyNode(DagNode):

    def __init__(self, *args, **kwargs):
        kwargs.update(node_type=SCENEGRAPH_NODE_TYPE)
        DagNode.__init__(self, *args, **kwargs)

        self.default_name       = 'my_node'
        self.color              = [172, 172, 172, 255]