Sha256: e5fad24f4fb9e85228c738654363411e79e73ed7c5e8b6a6d3a98645c9a6339b

Contents?: true

Size: 627 Bytes

Versions: 5

Compression:

Stored size: 627 Bytes

Contents

# Slips the keyframe positions by a specific integer amount of frames, positive values slip forward (later in time). Useful if you just edited some stuff onto
# the beginning if your sequence and need to extend your tracks.
class Tracksperanto::Tool::Slipper < Tracksperanto::Tool::Base
  
  parameter :slip,  :cast => :int, :desc => "Number of frames to slip related to the current frames", :default => 0
  
  def self.action_description
    "Slip all the tracker keyframes in time"
  end
  
  def export_point(frame, float_x, float_y, float_residual)
    super(frame + @slip.to_i, float_x, float_y, float_residual)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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