Skip to content

Instantly share code, notes, and snippets.

@julik
Created August 30, 2009 22:28
Show Gist options
  • Save julik/178189 to your computer and use it in GitHub Desktop.
Save julik/178189 to your computer and use it in GitHub Desktop.
require "rubygems"
require "tracksperanto"
class MyCustomPipeline < Tracksperanto::Pipeline::Base
def run(from_input_file_path)
# Grab the input
read_data = File.open(from_input_file_path, "rb")
# Instantiate the importer
importer = Tracksperanto::Import::FlameStabilizer.new
# Setup an exporter
f = File.open("/tmp/pftrack.2dt", "wb")
exporter = Tracksperanto::Export::PFTrack.new(f)
@converted_points, @converted_keyframes = run_export(read_data, importer, exporter)
end
end
MyCustomPipeline.new.run("/RAID/shots/001/ShotTs.stabilizer")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment