Python script Write File arguments

I am trying to find the correct syntax to create a write file node that would allow me to save the exrs to a specific reel and use timecode instead of start frame.

    # Create neat render node
    render_node2 = self.batch_group.create_node('Write File')
    render_node2.frame_rate = clip_frame_rate
    render_node2.range_end = self.clip.duration
    render_node2.source_timecode = clip_timecode
    render_node2.record_timecode = clip_timecode
    render_node2.name = '<batch name>_NEAT_v<iteration###>'
    render_node2.pos_x = render_out_mux.pos_x + 400
    render_node2.pos_y = render_out_mux.pos_y + 300
    render_node2.create_clip = False
    render_node2.include_setup = True
    render_node2.add_to_workspace = True

    # I tried those but they didn't work:
    #        render_node2.destination = ('Batch Reels', 'RENDERS')
    #        render_node2.set_write_node_destination(render_node2, 'Reel', 'Batch Reel 2')
    #        render_node2.workspace_destination = "03_PASSES"
    #        render_node2.set_write_node_destination(render_node2, 'Reel Group', '03_PASSES')
    #        set_write_node_destination(render_node2, 'Reel', 'Batch Reel 2')
    #        render_node2.timecode_mode = True # Use Source Timecode

Thanks!

There is a handy dandy python script that can import renders from the write node. You can choose where it gets saved, what reel, name of reel etc.

If you use T-click and ensure the write node has the correct time code then even if you are using frames for display, the time code will match the source clip.

import_write_node.py

I use this script to import the openClip but I am sure that it can be used on the rendered clip as well

Not sure what version they introduced it, but the “Add to workspace” button does just that.

I can’t figure it ou so far…

I’m not a python person, but it looks like you’re using a write node when you want to use a render node no? It doesn’t look like you’re trying to write out to the file system, but rather render directly to a reel which you can accomplish with a render node.

If you are indeed trying to write them out as exrs to the file system and then reimport them, somewhere you’ll need to define the path for output and then call a similar set of commands as @MikeV’s import script does.

If you are using Flame 2023.2 ( or later), as long that the reel RENDERS already exists, the following line should work:
render_node2.destination = (‘Batch Reels’, ‘RENDERS’)