Sha256: 9f8081b951bb5866c1dc1962642763dca9df8031c9b0cf11ce6b09c2a8c4abc1

Contents?: true

Size: 872 Bytes

Versions: 5

Compression:

Stored size: 872 Bytes

Contents

# Exports setups with tracker naming that works with the Action bilinears
class Tracksperanto::Export::FlameStabilizerCornerpin < Tracksperanto::Export::FlameStabilizer
  
  CORNERPIN_NAMING = %w( none top_left top_right bottom_left bottom_right )
  
  def self.desc_and_extension
    "flame_cornerpin.stabilizer"
  end
  
  def self.human_name
    "Flame/Smoke 2D Stabilizer setup for bilinear corner pins"
  end
  
  def prefix(tracker_channel)
    tracker_name = CORNERPIN_NAMING[@counter] || ("tracker%d" % @counter)
    [tracker_name, tracker_channel].join("/")
  end
  
  def start_tracker_segment(tracker_name)
    if (@counter == 4)
      @skip = true
    else
      super
    end 
  end
  
  def export_point(frame, abs_float_x, abs_float_y, float_residual)
    return if @skip
    super
  end
  
  def end_tracker_segment
    return if @skip
    super
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tracksperanto-2.8.5 lib/export/flame_stabilizer_cornerpin.rb
tracksperanto-2.8.4 lib/export/flame_stabilizer_cornerpin.rb
tracksperanto-2.8.2 lib/export/flame_stabilizer_cornerpin.rb
tracksperanto-2.8.1 lib/export/flame_stabilizer_cornerpin.rb
tracksperanto-2.8.0 lib/export/flame_stabilizer_cornerpin.rb