tracksperanto 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +9 -8
- data/README.txt +1 -1
- data/lib/export/equalizer3.rb +42 -0
- data/lib/export/{equalizer.rb → equalizer4.rb} +4 -4
- data/lib/export/maya_live.rb +6 -1
- data/lib/import/equalizer3.rb +49 -0
- data/lib/import/{equalizer.rb → equalizer4.rb} +2 -2
- data/lib/import/maya_live.rb +7 -1
- data/lib/tracksperanto.rb +1 -1
- data/test/export/samples/ref_Mayalive_CustomAspect.txt +45 -0
- data/test/export/samples/ref_equalizer3.txt +46 -0
- data/test/export/test_equalizer3_export.rb +15 -0
- data/test/export/test_equalizer_export.rb +3 -3
- data/test/export/test_maya_live_export.rb +9 -2
- data/test/helper.rb +4 -1
- data/test/import/samples/3de_export_v3.txt +2203 -0
- data/test/import/test_3de_import.rb +3 -3
- data/test/import/test_3de_import3.rb +33 -0
- data/test/import/test_maya_live_import.rb +24 -0
- data/tracksperanto.gemspec +3 -3
- metadata +13 -10
- data/.DS_Store +0 -0
- data/lib/.DS_Store +0 -0
- data/test/.DS_Store +0 -0
- data/test/export/.DS_Store +0 -0
- data/test/import/.DS_Store +0 -0
- data/test/import/samples/.DS_Store +0 -0
@@ -4,15 +4,15 @@ class EqualizerImportTest < Test::Unit::TestCase
|
|
4
4
|
DELTA = 0.001
|
5
5
|
|
6
6
|
def test_introspects_properly
|
7
|
-
i = Tracksperanto::Import::
|
8
|
-
assert_equal "3DE point export file", i.human_name
|
7
|
+
i = Tracksperanto::Import::Equalizer4
|
8
|
+
assert_equal "3DE v4 point export file", i.human_name
|
9
9
|
assert !i.autodetects_size?
|
10
10
|
end
|
11
11
|
|
12
12
|
def test_parsing_from_importable
|
13
13
|
fixture = File.open(File.dirname(__FILE__) + '/samples/3de_export_cube.txt')
|
14
14
|
|
15
|
-
parser = Tracksperanto::Import::
|
15
|
+
parser = Tracksperanto::Import::Equalizer4.new
|
16
16
|
parser.width = 1024
|
17
17
|
parser.height = 512
|
18
18
|
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../helper'
|
2
|
+
|
3
|
+
class Equalizer3ImportTest < Test::Unit::TestCase
|
4
|
+
DELTA = 0.001
|
5
|
+
|
6
|
+
def test_introspects_properly
|
7
|
+
i = Tracksperanto::Import::Equalizer3
|
8
|
+
assert_equal "3DE v3 point export file", i.human_name
|
9
|
+
assert i.autodetects_size?
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_parsing_from_importable
|
13
|
+
fixture = File.open(File.dirname(__FILE__) + '/samples/3de_export_v3.txt')
|
14
|
+
|
15
|
+
parser = Tracksperanto::Import::Equalizer3.new
|
16
|
+
|
17
|
+
trackers = parser.parse(fixture)
|
18
|
+
|
19
|
+
assert_equal 2048, parser.width
|
20
|
+
assert_equal 778, parser.height
|
21
|
+
|
22
|
+
assert_equal 39, trackers.length
|
23
|
+
|
24
|
+
first_t = trackers[0]
|
25
|
+
assert_equal "03", first_t.name
|
26
|
+
assert_equal 43, first_t.length
|
27
|
+
|
28
|
+
first_kf = first_t[0]
|
29
|
+
assert_equal 22, first_kf.frame
|
30
|
+
assert_in_delta 71.7889, first_kf.abs_x, DELTA
|
31
|
+
assert_in_delta 481.708, first_kf.abs_y, DELTA
|
32
|
+
end
|
33
|
+
end
|
@@ -15,6 +15,7 @@ class MayaLiveImportTest < Test::Unit::TestCase
|
|
15
15
|
p = Tracksperanto::Import::MayaLive.new
|
16
16
|
trackers = p.parse(f)
|
17
17
|
|
18
|
+
assert_in_delta 2.37, p.aspect, DELTA
|
18
19
|
assert_equal 1280, p.width
|
19
20
|
assert_equal 540, p.height
|
20
21
|
|
@@ -29,4 +30,27 @@ class MayaLiveImportTest < Test::Unit::TestCase
|
|
29
30
|
assert_in_delta 388.542, first_kf.abs_x, DELTA
|
30
31
|
assert_in_delta 513.346, first_kf.abs_y, DELTA
|
31
32
|
end
|
33
|
+
|
34
|
+
def test_parse_file_with_custom_aspect
|
35
|
+
f = File.open(File.dirname(__FILE__) + "/samples/mayalive_kipShot.txt")
|
36
|
+
|
37
|
+
p = Tracksperanto::Import::MayaLive.new
|
38
|
+
p.aspect = 1.78
|
39
|
+
trackers = p.parse(f)
|
40
|
+
assert_in_delta 1.78, p.aspect, DELTA
|
41
|
+
|
42
|
+
assert_equal 1280, p.width
|
43
|
+
assert_equal 540, p.height
|
44
|
+
|
45
|
+
assert_equal 18, trackers.length
|
46
|
+
|
47
|
+
first_t = trackers[0]
|
48
|
+
assert_equal "trackedPoint1", first_t.name
|
49
|
+
assert_equal 225, first_t.length
|
50
|
+
first_kf = first_t[0]
|
51
|
+
|
52
|
+
assert_equal 0, first_kf.frame
|
53
|
+
assert_in_delta 305.141, first_kf.abs_x, DELTA
|
54
|
+
assert_in_delta 513.346, first_kf.abs_y, DELTA
|
55
|
+
end
|
32
56
|
end
|
data/tracksperanto.gemspec
CHANGED
@@ -6,13 +6,13 @@ Gem::Specification.new do |s|
|
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Julik Tarkhanov"]
|
9
|
-
s.date = %q{2009-10-
|
9
|
+
s.date = %q{2009-10-09}
|
10
10
|
s.default_executable = %q{tracksperanto}
|
11
11
|
s.description = %q{Tracksperanto is a universal 2D-track translator between many apps.}
|
12
12
|
s.email = ["me@julik.nl"]
|
13
13
|
s.executables = ["tracksperanto"]
|
14
14
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
|
15
|
-
s.files = ["
|
15
|
+
s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/tracksperanto", "lib/export/base.rb", "lib/export/equalizer3.rb", "lib/export/equalizer4.rb", "lib/export/match_mover.rb", "lib/export/maya_live.rb", "lib/export/mux.rb", "lib/export/nuke_script.rb", "lib/export/pftrack.rb", "lib/export/pftrack_5.rb", "lib/export/shake_text.rb", "lib/export/syntheyes.rb", "lib/import/base.rb", "lib/import/equalizer3.rb", "lib/import/equalizer4.rb", "lib/import/flame_stabilizer.rb", "lib/import/match_mover.rb", "lib/import/maya_live.rb", "lib/import/nuke_script.rb", "lib/import/pftrack.rb", "lib/import/shake_grammar/catcher.rb", "lib/import/shake_grammar/lexer.rb", "lib/import/shake_script.rb", "lib/import/shake_text.rb", "lib/import/syntheyes.rb", "lib/middleware/base.rb", "lib/middleware/golden.rb", "lib/middleware/reformat.rb", "lib/middleware/scaler.rb", "lib/middleware/shift.rb", "lib/middleware/slipper.rb", "lib/pipeline/base.rb", "lib/tracksperanto.rb", "lib/tracksperanto/block_init.rb", "lib/tracksperanto/casts.rb", "lib/tracksperanto/const_name.rb", "lib/tracksperanto/ext_io.rb", "lib/tracksperanto/format_detector.rb", "lib/tracksperanto/keyframe.rb", "lib/tracksperanto/safety.rb", "lib/tracksperanto/tracker.rb", "lib/tracksperanto/zip_tuples.rb", "test/export/README_EXPORT_TESTS.txt", "test/export/samples/ref_Mayalive.txt", "test/export/samples/ref_Mayalive_CustomAspect.txt", "test/export/samples/ref_NukeScript.nk", "test/export/samples/ref_NukeScript.nk.autosave", "test/export/samples/ref_PFTrack.2dt", "test/export/samples/ref_PFTrack5.2dt", "test/export/samples/ref_ShakeText.txt", "test/export/samples/ref_Syntheyes.txt", "test/export/samples/ref_equalizer.txt", "test/export/samples/ref_equalizer3.txt", "test/export/samples/ref_matchmover.rz2", "test/export/test_equalizer3_export.rb", "test/export/test_equalizer_export.rb", "test/export/test_match_mover_export.rb", "test/export/test_maya_live_export.rb", "test/export/test_mux.rb", "test/export/test_nuke_export.rb", "test/export/test_pftrack5_export.rb", "test/export/test_pftrack_export.rb", "test/export/test_shake_export.rb", "test/export/test_syntheyes_export.rb", "test/helper.rb", "test/import/samples/3de_export_cube.txt", "test/import/samples/3de_export_v3.txt", "test/import/samples/flyover2DP_syntheyes.txt", "test/import/samples/four_tracks_in_one_matchmove.shk", "test/import/samples/four_tracks_in_one_stabilizer.shk", "test/import/samples/fromCombustion_fromMidClip_wSnap.stabilizer", "test/import/samples/garage.2dt", "test/import/samples/hugeFlameSetup.stabilizer", "test/import/samples/kipPointsMatchmover.rz2", "test/import/samples/mayalive_kipShot.txt", "test/import/samples/megaTrack.action.3dtrack.stabilizer", "test/import/samples/one_shake_tracker.txt", "test/import/samples/one_shake_tracker_from_first.txt", "test/import/samples/one_tracker_with_break.nk", "test/import/samples/one_tracker_with_break_in_grp.nk", "test/import/samples/shake_tracker_nodes.shk", "test/import/samples/shake_tracker_nodes_to_syntheyes.txt", "test/import/samples/sourcefile_pftrack.2dt", "test/import/samples/three_tracks_in_one_stabilizer.shk", "test/import/samples/two_shake_trackers.txt", "test/import/samples/two_tracks_in_one_tracker.shk", "test/import/test_3de_import.rb", "test/import/test_3de_import3.rb", "test/import/test_flame_import.rb", "test/import/test_match_mover_import.rb", "test/import/test_maya_live_import.rb", "test/import/test_nuke_import.rb", "test/import/test_pftrack_import.rb", "test/import/test_shake_catcher.rb", "test/import/test_shake_lexer.rb", "test/import/test_shake_script_import.rb", "test/import/test_shake_text_import.rb", "test/import/test_syntheyes_import.rb", "test/middleware/test_golden_middleware.rb", "test/middleware/test_reformat_middleware.rb", "test/middleware/test_scaler_middleware.rb", "test/middleware/test_shift_middleware.rb", "test/middleware/test_slip_middleware.rb", "test/test_const_name.rb", "test/test_extio.rb", "test/test_format_detector.rb", "test/test_keyframe.rb", "test/test_tracker.rb", "tracksperanto.gemspec"]
|
16
16
|
s.has_rdoc = true
|
17
17
|
s.homepage = %q{http://guerilla-di.org/tracksperanto}
|
18
18
|
s.rdoc_options = ["--main", "README.txt"]
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.rubyforge_project = %q{guerilla-di}
|
21
21
|
s.rubygems_version = %q{1.3.1}
|
22
22
|
s.summary = %q{Tracksperanto is a universal 2D-track translator between many apps.}
|
23
|
-
s.test_files = ["test/export/test_equalizer_export.rb", "test/export/test_match_mover_export.rb", "test/export/test_maya_live_export.rb", "test/export/test_mux.rb", "test/export/test_nuke_export.rb", "test/export/test_pftrack5_export.rb", "test/export/test_pftrack_export.rb", "test/export/test_shake_export.rb", "test/export/test_syntheyes_export.rb", "test/import/test_3de_import.rb", "test/import/test_flame_import.rb", "test/import/test_match_mover_import.rb", "test/import/test_maya_live_import.rb", "test/import/test_nuke_import.rb", "test/import/test_pftrack_import.rb", "test/import/test_shake_catcher.rb", "test/import/test_shake_lexer.rb", "test/import/test_shake_script_import.rb", "test/import/test_shake_text_import.rb", "test/import/test_syntheyes_import.rb", "test/middleware/test_golden_middleware.rb", "test/middleware/test_reformat_middleware.rb", "test/middleware/test_scaler_middleware.rb", "test/middleware/test_shift_middleware.rb", "test/middleware/test_slip_middleware.rb", "test/test_const_name.rb", "test/test_extio.rb", "test/test_format_detector.rb", "test/test_keyframe.rb", "test/test_tracker.rb"]
|
23
|
+
s.test_files = ["test/export/test_equalizer3_export.rb", "test/export/test_equalizer_export.rb", "test/export/test_match_mover_export.rb", "test/export/test_maya_live_export.rb", "test/export/test_mux.rb", "test/export/test_nuke_export.rb", "test/export/test_pftrack5_export.rb", "test/export/test_pftrack_export.rb", "test/export/test_shake_export.rb", "test/export/test_syntheyes_export.rb", "test/import/test_3de_import.rb", "test/import/test_3de_import3.rb", "test/import/test_flame_import.rb", "test/import/test_match_mover_import.rb", "test/import/test_maya_live_import.rb", "test/import/test_nuke_import.rb", "test/import/test_pftrack_import.rb", "test/import/test_shake_catcher.rb", "test/import/test_shake_lexer.rb", "test/import/test_shake_script_import.rb", "test/import/test_shake_text_import.rb", "test/import/test_syntheyes_import.rb", "test/middleware/test_golden_middleware.rb", "test/middleware/test_reformat_middleware.rb", "test/middleware/test_scaler_middleware.rb", "test/middleware/test_shift_middleware.rb", "test/middleware/test_slip_middleware.rb", "test/test_const_name.rb", "test/test_extio.rb", "test/test_format_detector.rb", "test/test_keyframe.rb", "test/test_tracker.rb"]
|
24
24
|
|
25
25
|
if s.respond_to? :specification_version then
|
26
26
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tracksperanto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julik Tarkhanov
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-09 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -44,15 +44,14 @@ extra_rdoc_files:
|
|
44
44
|
- Manifest.txt
|
45
45
|
- README.txt
|
46
46
|
files:
|
47
|
-
- .DS_Store
|
48
47
|
- History.txt
|
49
48
|
- Manifest.txt
|
50
49
|
- README.txt
|
51
50
|
- Rakefile
|
52
51
|
- bin/tracksperanto
|
53
|
-
- lib/.DS_Store
|
54
52
|
- lib/export/base.rb
|
55
|
-
- lib/export/
|
53
|
+
- lib/export/equalizer3.rb
|
54
|
+
- lib/export/equalizer4.rb
|
56
55
|
- lib/export/match_mover.rb
|
57
56
|
- lib/export/maya_live.rb
|
58
57
|
- lib/export/mux.rb
|
@@ -62,7 +61,8 @@ files:
|
|
62
61
|
- lib/export/shake_text.rb
|
63
62
|
- lib/export/syntheyes.rb
|
64
63
|
- lib/import/base.rb
|
65
|
-
- lib/import/
|
64
|
+
- lib/import/equalizer3.rb
|
65
|
+
- lib/import/equalizer4.rb
|
66
66
|
- lib/import/flame_stabilizer.rb
|
67
67
|
- lib/import/match_mover.rb
|
68
68
|
- lib/import/maya_live.rb
|
@@ -90,10 +90,9 @@ files:
|
|
90
90
|
- lib/tracksperanto/safety.rb
|
91
91
|
- lib/tracksperanto/tracker.rb
|
92
92
|
- lib/tracksperanto/zip_tuples.rb
|
93
|
-
- test/.DS_Store
|
94
|
-
- test/export/.DS_Store
|
95
93
|
- test/export/README_EXPORT_TESTS.txt
|
96
94
|
- test/export/samples/ref_Mayalive.txt
|
95
|
+
- test/export/samples/ref_Mayalive_CustomAspect.txt
|
97
96
|
- test/export/samples/ref_NukeScript.nk
|
98
97
|
- test/export/samples/ref_NukeScript.nk.autosave
|
99
98
|
- test/export/samples/ref_PFTrack.2dt
|
@@ -101,7 +100,9 @@ files:
|
|
101
100
|
- test/export/samples/ref_ShakeText.txt
|
102
101
|
- test/export/samples/ref_Syntheyes.txt
|
103
102
|
- test/export/samples/ref_equalizer.txt
|
103
|
+
- test/export/samples/ref_equalizer3.txt
|
104
104
|
- test/export/samples/ref_matchmover.rz2
|
105
|
+
- test/export/test_equalizer3_export.rb
|
105
106
|
- test/export/test_equalizer_export.rb
|
106
107
|
- test/export/test_match_mover_export.rb
|
107
108
|
- test/export/test_maya_live_export.rb
|
@@ -112,9 +113,8 @@ files:
|
|
112
113
|
- test/export/test_shake_export.rb
|
113
114
|
- test/export/test_syntheyes_export.rb
|
114
115
|
- test/helper.rb
|
115
|
-
- test/import/.DS_Store
|
116
|
-
- test/import/samples/.DS_Store
|
117
116
|
- test/import/samples/3de_export_cube.txt
|
117
|
+
- test/import/samples/3de_export_v3.txt
|
118
118
|
- test/import/samples/flyover2DP_syntheyes.txt
|
119
119
|
- test/import/samples/four_tracks_in_one_matchmove.shk
|
120
120
|
- test/import/samples/four_tracks_in_one_stabilizer.shk
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- test/import/samples/two_shake_trackers.txt
|
136
136
|
- test/import/samples/two_tracks_in_one_tracker.shk
|
137
137
|
- test/import/test_3de_import.rb
|
138
|
+
- test/import/test_3de_import3.rb
|
138
139
|
- test/import/test_flame_import.rb
|
139
140
|
- test/import/test_match_mover_import.rb
|
140
141
|
- test/import/test_maya_live_import.rb
|
@@ -184,6 +185,7 @@ signing_key:
|
|
184
185
|
specification_version: 2
|
185
186
|
summary: Tracksperanto is a universal 2D-track translator between many apps.
|
186
187
|
test_files:
|
188
|
+
- test/export/test_equalizer3_export.rb
|
187
189
|
- test/export/test_equalizer_export.rb
|
188
190
|
- test/export/test_match_mover_export.rb
|
189
191
|
- test/export/test_maya_live_export.rb
|
@@ -194,6 +196,7 @@ test_files:
|
|
194
196
|
- test/export/test_shake_export.rb
|
195
197
|
- test/export/test_syntheyes_export.rb
|
196
198
|
- test/import/test_3de_import.rb
|
199
|
+
- test/import/test_3de_import3.rb
|
197
200
|
- test/import/test_flame_import.rb
|
198
201
|
- test/import/test_match_mover_import.rb
|
199
202
|
- test/import/test_maya_live_import.rb
|
data/.DS_Store
DELETED
Binary file
|
data/lib/.DS_Store
DELETED
Binary file
|
data/test/.DS_Store
DELETED
Binary file
|
data/test/export/.DS_Store
DELETED
Binary file
|
data/test/import/.DS_Store
DELETED
Binary file
|
Binary file
|