Sha256: acb735f6c367fe10da6834efe56e65bfa3e5f1e5e89871f87e46a3aba7da5884

Contents?: true

Size: 687 Bytes

Versions: 5

Compression:

Stored size: 687 Bytes

Contents

# Implements just_export for quickly pushing trackers out through an exporter without using Pipeline
# plumbing
module Tracksperanto::SimpleExport
  # Acccepts an array of Tracker objects and comp size.
  # Before calling this, initialize the exporter with the proper
  # IO handle
  def just_export(trackers_array, comp_width, comp_height)
    lint = Tracksperanto::Tool::Lint.new(self)
    
    lint.start_export(comp_width, comp_height)
    trackers_array.each do | t |
      lint.start_tracker_segment(t.name)
      t.each do | kf |
        lint.export_point(kf.frame, kf.abs_x, kf.abs_y, kf.residual)
      end
      lint.end_tracker_segment
    end
    lint.end_export
  end
end


Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tracksperanto-4.2.0 lib/tracksperanto/simple_export.rb
tracksperanto-4.1.3 lib/tracksperanto/simple_export.rb
tracksperanto-4.1.2 lib/tracksperanto/simple_export.rb
tracksperanto-4.1.0 lib/tracksperanto/simple_export.rb
tracksperanto-4.0.0 lib/tracksperanto/simple_export.rb