Sha256: b87a3ffdb9738b66c0e685d4f48047d23d6ea2933ec31224e3585248cd0f1fb3

Contents?: true

Size: 654 Bytes

Versions: 26

Compression:

Stored size: 654 Bytes

Contents

# -*- encoding : utf-8 -*-
# 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

26 entries across 26 versions & 1 rubygems

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