Class: Tracksperanto::Import::FlameStabilizer
- Defined in:
- lib/import/flame_stabilizer.rb
Defined Under Namespace
Classes: ChannelBlock
Constant Summary collapse
- T =
::Tracksperanto::Tracker
- K =
::Tracksperanto::Keyframe
Instance Attribute Summary
Attributes inherited from Base
#height, #progress_block, #width
Class Method Summary collapse
-
.autodetects_size? ⇒ Boolean
Flame setups contain clear size indications.
- .distinct_file_ext ⇒ Object
- .human_name ⇒ Object
Instance Method Summary collapse
Methods inherited from Base
Methods included from ConstName
Methods included from ZipTuples
Methods included from BlockInit
Methods included from Casts
#cast_to_float, #cast_to_int, #cast_to_string, included
Methods included from Safety
Class Method Details
.autodetects_size? ⇒ Boolean
Flame setups contain clear size indications
5 6 7 |
# File 'lib/import/flame_stabilizer.rb', line 5 def self.autodetects_size? true end |
.distinct_file_ext ⇒ Object
9 10 11 |
# File 'lib/import/flame_stabilizer.rb', line 9 def self.distinct_file_ext ".stabilizer" end |
.human_name ⇒ Object
13 14 15 |
# File 'lib/import/flame_stabilizer.rb', line 13 def self.human_name "Flame .stabilizer file" end |
Instance Method Details
#parse(io) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/import/flame_stabilizer.rb', line 72 def parse(io) report_progress("Extracting setup size") self.width, self.height = extract_width_and_height_from_stream(io) report_progress("Extracting all animation channels") channels = extract_channels_from_stream(io) raise "The setup contained no channels that we could process" if channels.empty? raise "A channel was nil" if channels.find{|e| e.nil? } scavenge_trackers_from_channels(channels) end |