def updateNode(self, context): """ When a node has changed state and need to call a partial update. For example a user exposed bpy.prop """ global DEBUG_MODE a = time.perf_counter() sverchok_update(start_node=self) b = time.perf_counter() if DEBUG_MODE: print("Partial update from node", self.name, "in", round(b - a, 4))
def updateNode(self, context): """ When a node has changed state and need to call a partial update. For example a user exposed bpy.prop """ global DEBUG_MODE a = time.perf_counter() sverchok_update(start_node=self) b = time.perf_counter() if DEBUG_MODE: print("Partial update from node", self.name, "in", round(b-a, 4))
def update(self): ''' Rebuild and update the Sverchok node tree, used at editor changes ''' # startup safety net, a lot things will just break if this isn't # stopped... try: l = bpy.data.node_groups[self.id_data.name] except: return build_update_list(tree=self) sverchok_update(tree=self)
def execute(self, context): ng = bpy.data.node_groups.get(self.node_group) if ng: build_update_list(tree=ng) sverchok_update(tree=ng) return {'FINISHED'}
def execute(self, context): build_update_list() sverchok_update() return {'FINISHED'}
def update_ani(self): """ Updates the Sverchok node tree if animation layers show true. For animation callback """ if self.sv_animate: sverchok_update(tree=self)
def turn_off_ng(self, context): sverchok_update(tree=self)