Sha256: 323272c9e3aef3f738be21aa7504961a043aeaa56c3d3dcbac9e3b990b10f056
Contents?: true
Size: 627 Bytes
Versions: 10
Compression:
Stored size: 627 Bytes
Contents
# -*- encoding : utf-8 -*- # This middleware moves the keyframs by a preset number of pixels class Tracksperanto::Middleware::Shift < Tracksperanto::Middleware::Base parameter :x_shift, :cast => :float, :desc => "Amount of horizontal shift (in px)", :default => 0 parameter :y_shift, :cast => :float, :desc => "Amount of vertical shift (in px)", :default => 0 def self.action_description "Move all the trackers by a specified number of pixels" end 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 end
Version data entries
10 entries across 10 versions & 1 rubygems