Sha256: dc5eeec264b9d8c0770fce69e9ceb40bba1b1e89d706786eb491bec6d8b42e07

Contents?: true

Size: 581 Bytes

Versions: 26

Compression:

Stored size: 581 Bytes

Contents

# -*- encoding : utf-8 -*-
# This tool removes all keyframes before frame 0, and skips trackers entirely if they are all before frame 0
class Tracksperanto::Tool::StartTrim < Tracksperanto::Tool::Base
  
  def self.action_description
    "Remove all the keyframes that are on frames below 1"
  end
  
  def start_export( img_width, img_height)
    @exporter = Tracksperanto::Tool::LengthCutoff.new(@exporter, :min_length => 1) # Ensure at least one keyframe
    super
  end
  
  def export_point(frame, float_x, float_y, float_residual)
    return super unless frame < 0
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
tracksperanto-3.5.9 lib/tools/start_trim.rb
tracksperanto-3.5.8 lib/tools/start_trim.rb
tracksperanto-3.5.7 lib/tools/start_trim.rb
tracksperanto-3.5.6 lib/tools/start_trim.rb
tracksperanto-3.5.5 lib/tools/start_trim.rb
tracksperanto-3.5.4 lib/tools/start_trim.rb
tracksperanto-3.5.2 lib/tools/start_trim.rb
tracksperanto-3.5.1 lib/tools/start_trim.rb
tracksperanto-3.5.0 lib/tools/start_trim.rb
tracksperanto-3.4.1 lib/tools/start_trim.rb
tracksperanto-3.4.0 lib/tools/start_trim.rb
tracksperanto-3.3.13 lib/tools/start_trim.rb
tracksperanto-3.3.12 lib/tools/start_trim.rb
tracksperanto-3.3.11 lib/tools/start_trim.rb
tracksperanto-3.3.10 lib/tools/start_trim.rb
tracksperanto-3.3.9 lib/tools/start_trim.rb
tracksperanto-3.3.8 lib/tools/start_trim.rb
tracksperanto-3.3.7 lib/tools/start_trim.rb
tracksperanto-3.3.6 lib/tools/start_trim.rb
tracksperanto-3.3.0.pre lib/tools/start_trim.rb