tracksperanto 3.3.13 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,34 @@
1
+ # -*- encoding : utf-8 -*-
2
+ require File.expand_path(File.dirname(__FILE__)) + '/../helper'
3
+
4
+ class TestFlameStabilizer2014CornerpinExport < Test::Unit::TestCase
5
+ IN = File.dirname(__FILE__) + "/../import/samples/flame_stabilizer/stabilizer_2014_ref_for_reexport.stabilizer"
6
+ OUT = File.dirname(__FILE__) + "/samples/ref_flame_2014_cornerpin.stabilizer"
7
+
8
+ include ParabolicTracks
9
+
10
+ def test_roundtrip_export
11
+ importer = Tracksperanto::Import::FlameStabilizer.new(:io => File.open(IN))
12
+ trackers = importer.to_a.shuffle # Ensure we are not in correct order
13
+ assert_equal 4, trackers.length
14
+ trackers.each_with_index {|t, i | t.name = "randomName#{i}"}
15
+
16
+ io = StringIO.new
17
+
18
+ t = Time.local(2014, "Feb", 22, 11, 3, 0)
19
+ flexmock(Time).should_receive(:now).and_return(t)
20
+
21
+ x = Tracksperanto::Export::FlameStabilizer2014Cornerpin.new(io)
22
+ x.just_export(trackers, importer.width, importer.height)
23
+ io.rewind
24
+
25
+ assert_same_buffer(File.open(OUT, "r"), io, "Shoudl have exported the same buffer")
26
+ end
27
+
28
+ def test_exporter_meta
29
+ assert_equal "flamesmoke_2014_cornerpin.stabilizer",
30
+ Tracksperanto::Export::FlameStabilizer2014Cornerpin.desc_and_extension
31
+ assert_equal "Flame/Smoke 2D Stabilizer setup (v. 2014 and above) for corner pins",
32
+ Tracksperanto::Export::FlameStabilizer2014Cornerpin.human_name
33
+ end
34
+ end
@@ -0,0 +1,18 @@
1
+ # -*- encoding : utf-8 -*-
2
+ require File.expand_path(File.dirname(__FILE__)) + '/../helper'
3
+
4
+ class TestFlameStabilizer2014Export < Test::Unit::TestCase
5
+ include ParabolicTracks
6
+ P = File.dirname(__FILE__) + "/samples/ref_flame_2014.stabilizer"
7
+
8
+ def test_export_output_written
9
+ t = Time.local(2014, "Feb", 22, 11, 3, 0)
10
+ flexmock(Time).should_receive(:now).and_return(t)
11
+ ensure_same_output Tracksperanto::Export::FlameStabilizer2014, P
12
+ end
13
+
14
+ def test_exporter_meta
15
+ assert_equal "flamesmoke2014.stabilizer", Tracksperanto::Export::FlameStabilizer2014.desc_and_extension
16
+ assert_equal "Flame/Smoke 2D Stabilizer setup (v. 2014 and above)", Tracksperanto::Export::FlameStabilizer2014.human_name
17
+ end
18
+ end
@@ -141,7 +141,7 @@ class ShakeScriptImportTest < Test::Unit::TestCase
141
141
  assert_equal 850, trackers[0].length
142
142
  end
143
143
 
144
- def test_stabilize_nodes_in_great_numbers
144
+ def test_stabilize_nodes_with_a_curve_containing_an_unknown_atom
145
145
  fixture = File.open(File.dirname(__FILE__) + "/samples/shake_script/cliff_many_stabilize.shk")
146
146
  trackers = Tracksperanto::Import::ShakeScript.new(:io => fixture, :width => 1920, :height => 1080).to_a
147
147
  assert_equal 40, trackers.length
data/test/test_cli.rb CHANGED
@@ -42,7 +42,9 @@ class TestCli < Test::Unit::TestCase
42
42
  flm.stabilizer flm_3de_v3.txt flm_3de_v4.txt flm_boujou_text.txt flm_flame.stabilizer
43
43
  flm_matchmover.rz2 flm_mayalive.txt flm_nuke.nk flm_pftrack_2011_pfmatchit.txt flm_pftrack_v4.2dt
44
44
  flm_pftrack_v5.2dt flm_shake_trackers.txt flm_syntheyes_2dt.txt flm_flame_cornerpin.stabilizer
45
- flm_tracksperanto_ruby.rb flm_mayaLocators.ma flm_createNulls.jsx flm_xsi_nulls.py flm_nuke_cam_trk_autotracks.txt flm_3dsmax_nulls.ms
45
+ flm_tracksperanto_ruby.rb flm_mayaLocators.ma flm_createNulls.jsx flm_xsi_nulls.py flm_nuke_cam_trk_autotracks.txt
46
+ flm_3dsmax_nulls.ms
47
+ flm_flamesmoke_2014_cornerpin.stabilizer flm_flamesmoke2014.stabilizer
46
48
  )
47
49
  assert_match /Found and converted 1 trackers with 232 keyframes\./, o, "Should have output coversion statistics"
48
50
  assert_same_set fs, Dir.entries(d)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tracksperanto}
8
- s.version = "3.3.13"
8
+ s.version = "3.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Julik Tarkhanov"]
12
- s.date = %q{2014-02-07}
12
+ s.date = %q{2014-02-22}
13
13
  s.default_executable = %q{tracksperanto}
14
14
  s.description = %q{Converts 2D track exports between different apps like Flame, MatchMover, PFTrack...}
15
15
  s.email = %q{me@julik.nl}
@@ -31,6 +31,8 @@ Gem::Specification.new do |s|
31
31
  "lib/export/equalizer3.rb",
32
32
  "lib/export/equalizer4.rb",
33
33
  "lib/export/flame_stabilizer.rb",
34
+ "lib/export/flame_stabilizer_2014.rb",
35
+ "lib/export/flame_stabilizer_2014_cornerpin.rb",
34
36
  "lib/export/flame_stabilizer_cornerpin.rb",
35
37
  "lib/export/match_mover.rb",
36
38
  "lib/export/maxscript.rb",
@@ -120,11 +122,15 @@ Gem::Specification.new do |s|
120
122
  "test/export/samples/ref_equalizer3.txt",
121
123
  "test/export/samples/ref_flame.stabilizer",
122
124
  "test/export/samples/ref_flameCornerpin.stabilizer",
125
+ "test/export/samples/ref_flame_2014.stabilizer",
126
+ "test/export/samples/ref_flame_2014_cornerpin.stabilizer",
123
127
  "test/export/samples/ref_matchmover.rz2",
124
128
  "test/export/test_ae_export.rb",
125
129
  "test/export/test_boujou_export.rb",
126
130
  "test/export/test_equalizer3_export.rb",
127
131
  "test/export/test_equalizer_export.rb",
132
+ "test/export/test_flame_stabilizer_2014_cornerpin_export.rb",
133
+ "test/export/test_flame_stabilizer_2014_export.rb",
128
134
  "test/export/test_flame_stabilizer_cornerpin_export.rb",
129
135
  "test/export/test_flame_stabilizer_export.rb",
130
136
  "test/export/test_match_mover_export.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracksperanto
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
- - 3
9
- - 13
10
- version: 3.3.13
8
+ - 4
9
+ - 0
10
+ version: 3.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Julik Tarkhanov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2014-02-07 00:00:00 +01:00
18
+ date: 2014-02-22 00:00:00 +01:00
19
19
  default_executable: tracksperanto
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -261,6 +261,8 @@ files:
261
261
  - lib/export/equalizer3.rb
262
262
  - lib/export/equalizer4.rb
263
263
  - lib/export/flame_stabilizer.rb
264
+ - lib/export/flame_stabilizer_2014.rb
265
+ - lib/export/flame_stabilizer_2014_cornerpin.rb
264
266
  - lib/export/flame_stabilizer_cornerpin.rb
265
267
  - lib/export/match_mover.rb
266
268
  - lib/export/maxscript.rb
@@ -350,11 +352,15 @@ files:
350
352
  - test/export/samples/ref_equalizer3.txt
351
353
  - test/export/samples/ref_flame.stabilizer
352
354
  - test/export/samples/ref_flameCornerpin.stabilizer
355
+ - test/export/samples/ref_flame_2014.stabilizer
356
+ - test/export/samples/ref_flame_2014_cornerpin.stabilizer
353
357
  - test/export/samples/ref_matchmover.rz2
354
358
  - test/export/test_ae_export.rb
355
359
  - test/export/test_boujou_export.rb
356
360
  - test/export/test_equalizer3_export.rb
357
361
  - test/export/test_equalizer_export.rb
362
+ - test/export/test_flame_stabilizer_2014_cornerpin_export.rb
363
+ - test/export/test_flame_stabilizer_2014_export.rb
358
364
  - test/export/test_flame_stabilizer_cornerpin_export.rb
359
365
  - test/export/test_flame_stabilizer_export.rb
360
366
  - test/export/test_match_mover_export.rb