コード例 #1
0
ファイル: data_structure.py プロジェクト: cnisidis/sverchok
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))
コード例 #2
0
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))            
コード例 #3
0
ファイル: node_tree.py プロジェクト: cnisidis/sverchok
    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)
コード例 #4
0
ファイル: node_tree.py プロジェクト: beeka5/sverchok
    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)
コード例 #5
0
ファイル: sv_tools.py プロジェクト: beeka5/sverchok
 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'}
コード例 #6
0
ファイル: sv_tools.py プロジェクト: beeka5/sverchok
 def execute(self, context):
     build_update_list()
     sverchok_update()
     return {'FINISHED'}
コード例 #7
0
ファイル: node_tree.py プロジェクト: beeka5/sverchok
 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)
コード例 #8
0
ファイル: node_tree.py プロジェクト: beeka5/sverchok
 def turn_off_ng(self, context):
     sverchok_update(tree=self)
コード例 #9
0
ファイル: sv_tools.py プロジェクト: cnisidis/sverchok
 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'}
コード例 #10
0
ファイル: sv_tools.py プロジェクト: cnisidis/sverchok
 def execute(self, context):
     build_update_list()
     sverchok_update()
     return {'FINISHED'}
コード例 #11
0
ファイル: node_tree.py プロジェクト: cnisidis/sverchok
 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)
コード例 #12
0
ファイル: node_tree.py プロジェクト: cnisidis/sverchok
 def turn_off_ng(self, context):
     sverchok_update(tree=self)