Class: Tracksperanto::Middleware::Slipper

Inherits:
Base
  • Object
show all
Defined in:
lib/middleware/slipper.rb

Overview

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.

Constant Summary collapse

DEFAULT_SLIP =
0

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#end_export, #end_tracker_segment, #initialize, #start_export, #start_tracker_segment

Methods included from BlockInit

#initialize

Methods included from Casts

#cast_to_float, #cast_to_int, #cast_to_string, included

Constructor Details

This class inherits a constructor from Tracksperanto::Middleware::Base

Instance Attribute Details

#slipObject

Returns the value of attribute slip.



5
6
7
# File 'lib/middleware/slipper.rb', line 5

def slip
  @slip
end

Instance Method Details

#export_point(frame, float_x, float_y, float_residual) ⇒ Object



12
13
14
# File 'lib/middleware/slipper.rb', line 12

def export_point(frame, float_x, float_y, float_residual)
  super(frame + slip, float_x, float_y, float_residual)
end