Sha256: 2617fbdc4fccd2bc89bdd6d3edb32a176e3a2cf5e139d929e205b7ba81e4449a

Contents?: true

Size: 541 Bytes

Versions: 50

Compression:

Stored size: 541 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::Middleware::Slipper < Tracksperanto::Middleware::Base
  DEFAULT_SLIP = 0
  attr_accessor :slip
  cast_to_int :slip
  
  def slip
    @slip.to_i || DEFAULT_SLIP
  end
  
  def export_point(frame, float_x, float_y, float_residual)
    super(frame + slip, float_x, float_y, float_residual)
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
tracksperanto-1.7.2 lib/middleware/slipper.rb
tracksperanto-1.7.1 lib/middleware/slipper.rb
tracksperanto-1.7.0 lib/middleware/slipper.rb
tracksperanto-1.6.9 lib/middleware/slipper.rb
tracksperanto-1.6.8 lib/middleware/slipper.rb
tracksperanto-1.6.7 lib/middleware/slipper.rb
tracksperanto-1.6.6 lib/middleware/slipper.rb
tracksperanto-1.6.5 lib/middleware/slipper.rb
tracksperanto-1.6.4 lib/middleware/slipper.rb
tracksperanto-1.6.3 lib/middleware/slipper.rb
tracksperanto-1.6.2 lib/middleware/slipper.rb
tracksperanto-1.6.1 lib/middleware/slipper.rb
tracksperanto-1.6.0 lib/middleware/slipper.rb
tracksperanto-1.5.7 lib/middleware/slipper.rb
tracksperanto-1.5.6 lib/middleware/slipper.rb
tracksperanto-1.5.5 lib/middleware/slipper.rb
tracksperanto-1.5.4 lib/middleware/slipper.rb
tracksperanto-1.5.3 lib/middleware/slipper.rb
tracksperanto-1.5.2 lib/middleware/slipper.rb
tracksperanto-1.5.1 lib/middleware/slipper.rb