class FlameChannelParser::FramecurveWriters::Kronos
Writes out a framecurve setup
Constants
- TEMPLATE
- TOKEN
Public Class Methods
extension()
click to toggle source
# File lib/framecurve_writers/kronos.rb, line 6 def self.extension '.F_Kronos' end
Public Instance Methods
run_export(io) { |writer| ... }
click to toggle source
# File lib/framecurve_writers/kronos.rb, line 10 def run_export(io) buf = StringIO.new w = FlameChannelParser::Builder.new(buf) w.channel("Frame") do | c | writer = KeyWriter.new yield(writer) write_animation(writer.keys, c, :linear) end # Entab everything template = File.read(TEMPLATE) io.write(template.gsub(TOKEN, buf.string)) end