def node_setting_init():
    bpy.context.scene.use_nodes = True
    tree = bpy.context.scene.node_tree
    links = tree.links
    for node in tree.nodes:
        tree.nodes.remove(node)
    render_layer_node = tree.nodes.new('CompositorNodeRLayers')
    image_output_node = tree.nodes.new('CompositorNodeOutputFile')
    image_output_node.base_path = g_syn_rgb_folder
    links.new(render_layer_node.outputs[0], image_output_node.inputs[0])
    image_output_node.base_path = g_temp
    image_output_node.file_slots[0].path = 'image-######.png'
def node_setting_init():
    bpy.context.scene.use_nodes = True
    tree = bpy.context.scene.node_tree
    links = tree.links
    for node in tree.nodes:
        tree.nodes.remove(node)
    render_layer_node = tree.nodes.new('CompositorNodeRLayers')
    image_output_node = tree.nodes.new('CompositorNodeOutputFile')
    image_output_node.base_path = g_syn_rgb_folder
    links.new(render_layer_node.outputs[0], image_output_node.inputs[0])
    image_output_node.base_path = g_temp
    image_output_node.file_slots[0].path = 'image-######.png'