Sha256: 364c525e67709a2d5d568648cdcd15c0a08da8b9f85c9c14e7136ba3b05c9aa4
Contents?: true
Size: 550 Bytes
Versions: 11
Compression:
Stored size: 550 Bytes
Contents
# This middleware removes all keyframes before frame 0, and skips trackers entirely if they are all before frame 0 class Tracksperanto::Middleware::StartTrim < Tracksperanto::Middleware::Base attr_accessor :enabled def start_export( img_width, img_height) if @enabled @exporter = Tracksperanto::Middleware::LengthCutoff.new(@exporter, :min_length => 1) # Ensure at least one keyframe end super end def export_point(frame, float_x, float_y, float_residual) return super unless (@enabled && frame < 0) end end
Version data entries
11 entries across 11 versions & 1 rubygems