Class: Tracksperanto::Tool::Shift

Inherits:
Base
  • Object
show all
Defined in:
lib/tools/shift.rb

Overview

This tool moves the keyframs by a preset number of pixels

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

inherited, #initialize

Methods included from Parameters

#parameter, #parameters

Methods included from SimpleExport

#just_export

Methods included from ConstName

#const_name

Methods included from BlockInit

#initialize

Methods included from Casts

#cast_to_bool, #cast_to_float, #cast_to_int, #cast_to_string

Constructor Details

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

Class Method Details

.action_descriptionObject


7
8
9
# File 'lib/tools/shift.rb', line 7

def self.action_description
  "Move all the trackers by a specified number of pixels"
end

Instance Method Details

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


11
12
13
# File 'lib/tools/shift.rb', line 11

def export_point(frame, float_x, float_y, float_residual)
  super(frame, float_x + @x_shift.to_f, float_y + @y_shift.to_f, float_residual)
end