Sha256: ec4c588be655b8f2990bbf6f7048195f9b885895e992a25e6af6f7106fbd0ae4

Contents?: true

Size: 666 Bytes

Versions: 10

Compression:

Stored size: 666 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::Middleware::Slipper < Tracksperanto::Middleware::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

10 entries across 10 versions & 1 rubygems

Version Path
tracksperanto-2.12.0 lib/middleware/slipper.rb
tracksperanto-2.11.3 lib/middleware/slipper.rb
tracksperanto-2.11.2 lib/middleware/slipper.rb
tracksperanto-2.11.1 lib/middleware/slipper.rb
tracksperanto-2.11.0 lib/middleware/slipper.rb
tracksperanto-2.10.0 lib/middleware/slipper.rb
tracksperanto-2.9.9 lib/middleware/slipper.rb
tracksperanto-2.9.8 lib/middleware/slipper.rb
tracksperanto-2.9.7 lib/middleware/slipper.rb
tracksperanto-2.9.6 lib/middleware/slipper.rb