Skip to content

Instantly share code, notes, and snippets.

@julik
Created February 18, 2009 01:28
Show Gist options
  • Save julik/66123 to your computer and use it in GitHub Desktop.
Save julik/66123 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'depix'
sources, renders = %w( in/*.DPX out/*.DPX ).map{|e| Dir.glob(e) }
sources.zip(renders).each do | (source, render) |
# Read the source TC and the target headers
from_dpx = Depix.from_file(source)
to_dpx = Depix::Editor.new(render)
# Copy the TC and the reel name over
to_dpx.timecode = from_dpx.timecode
to_dpx.flame_reel = from_dpx.flame_reel
# Commit the new headers for render
to_dpx.commit!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment