Sha256: 70fa92bdb5f30acf4c14e9acfd33595e180dfa91e28ffe3fa275e6bdaf826dc2
Contents?: true
Size: 815 Bytes
Versions: 15
Compression:
Stored size: 815 Bytes
Contents
# -*- encoding : utf-8 -*- # Export for Shake .txt tracker blobs class Tracksperanto::Export::ShakeText < Tracksperanto::Export::Base PREAMBLE = "TrackName %s\n Frame X Y Correlation\n" POSTAMBLE = "\n" TEMPLATE = " %.2f %.3f %.3f %.3f" def self.desc_and_extension "shake_trackers.txt" end def self.human_name "Shake trackers in a .txt file (also usable with Nuke's CameraTracker)" end def start_tracker_segment(tracker_name) @io.puts PREAMBLE % tracker_name end def end_tracker_segment @io.puts POSTAMBLE end def export_point(frame, abs_float_x, abs_float_y, float_residual) # Shake starts from frame 1, not 0 line = TEMPLATE % [frame + 1, abs_float_x, abs_float_y, 1 - float_residual] @io.puts line end end
Version data entries
15 entries across 15 versions & 1 rubygems