Class: Tracksperanto::Tool::Slipper

Inherits:
Base
  • Object
show all
Defined in:
lib/tools/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.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

inherited, #initialize

Methods included from Parameters

included, #parameter, #parameters

Methods included from SimpleExport

#just_export

Methods included from ConstName

#const_name, included

Methods included from BlockInit

#initialize

Methods included from Casts

#cast_to_bool, #cast_to_float, #cast_to_int, #cast_to_string, included

Constructor Details

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

Class Method Details

.action_descriptionObject



8
9
10
# File 'lib/tools/slipper.rb', line 8

def self.action_description
  "Slip all the tracker keyframes in time"
end

Instance Method Details

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



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

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