Sha256: 50f66be4f1daeae9d114ddb646d76e0bebff3f1531c7bd5e7960fffe05d5a2e1
Contents?: true
Size: 582 Bytes
Versions: 5
Compression:
Stored size: 582 Bytes
Contents
# This tool moves the keyframs by a preset number of pixels class Tracksperanto::Tool::Shift < Tracksperanto::Tool::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
5 entries across 5 versions & 1 rubygems