Clip node time offset in python?

Does anyone know the method for adjusting the timing offset of a clip node in batch using python? I’m of course super green in python but for the life of me I can’t figure it out.

attributes = [‘pos_x’, ‘pos_y’, ‘name’, ‘collapsed’, ‘note’, ‘note_collapsed’, ‘selected’, ‘type’, ‘resolution’, ‘schematic_colour’, ‘schematic_colour_label’, ‘bypass’, ‘media_path’, ‘duration’, ‘shot_name’, ‘tokenized_shot_name’, ‘dynamic_shot_name’, ‘clip_name’, ‘resolution_mode’, ‘scaling_presets_value’, ‘adaptive_mode’]

…is all I can see. Sorry if this is super obvious…

1 Like

@cnoellert - sorry brother - i couldn’t access the attribute either.

Traceback (most recent call last):
  File "/opt/Autodesk/presets/2026/shotgun/python/tk_flame_basic/../tk_multi_pythonconsole/python/app/input_widget.py", line 246, in execute
    exec(python_code, self._locals, self._locals)
  File "python input", line 14, in <module>
RuntimeError: Clip Node does not have any timing_offset attribute.

I can get to timing_offset in a mux node, but that’s less helpful:

import flame

# Get the currently selected node (assuming it's a Mux node)
selected_node_attribute = flame.batch.current_node
mux_node = selected_node_attribute.get_value()

# Set the new timing offset value (e.g., 10 frames)
# Replace with your desired offset. Positive values shift forward, negative backward.
new_offset_value = 10

# Set the timing_offset attribute of the Mux node
mux_node.timing_offset = new_offset_value

print(f"Mux node '{mux_node.name}' timing offset set to: {mux_node.timing_offset}")
1 Like

That’s how I do it. I add a mux node and offset it pythonically.

2 Likes

@cnoellert Please submit a Flame Feedback Request for this

2 Likes

@cnoellert - please request access to the head media, gap media, tail media and lock attributes.

1 Like

Feedback request can be found here. Vote early and vote often.

2 Likes

done

done

@TimC and @philm you’re both beautiful humans.

Done!

@andymilkis Love your work.

1 Like