def process(self): inputs = self.inputs n_id = node_id(self) # end early nvBGL.callback_disable(n_id) in_links = inputs[0].is_linked if self.activate and in_links: # gather vertices from input lines = nvBGL.parse_socket(inputs[0]) draw_data = { 'tree_name': self.id_data.name[:], 'content': lines, 'location': (self.location + Vector((self.width + 20, 0)))[:], 'color': self.text_color[:], } nvBGL.callback_enable(n_id, draw_data)
def free(self): nvBGL.callback_disable(node_id(self))