Class: Tracksperanto::Tool::StartTrim
- Defined in:
- lib/tools/start_trim.rb
Overview
This tool removes all keyframes before frame 0, and skips trackers entirely if they are all before frame 0
Class Method Summary collapse
Instance Method Summary collapse
- #export_point(frame, float_x, float_y, float_residual) ⇒ Object
- #start_export(img_width, img_height) ⇒ Object
Methods inherited from Base
Methods included from Parameters
included, #parameter, #parameters
Methods included from SimpleExport
Methods included from ConstName
Methods included from BlockInit
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_description ⇒ Object
5 6 7 |
# File 'lib/tools/start_trim.rb', line 5 def self.action_description "Remove all the keyframes that are on frames below 1" end |
Instance Method Details
#export_point(frame, float_x, float_y, float_residual) ⇒ Object
14 15 16 |
# File 'lib/tools/start_trim.rb', line 14 def export_point(frame, float_x, float_y, float_residual) return super unless frame < 0 end |
#start_export(img_width, img_height) ⇒ Object
9 10 11 12 |
# File 'lib/tools/start_trim.rb', line 9 def start_export( img_width, img_height) @exporter = Tracksperanto::Tool::LengthCutoff.new(@exporter, :min_length => 1) # Ensure at least one keyframe super end |