tracksperanto 1.5.3 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.5.4 / 2009-10-25
2
+
3
+ * Fix a bug in the Shake importer for tracks that have no animation
4
+
1
5
  === 1.5.3 / 2009-10-17
2
6
 
3
7
  * Fix a bug in the Nuke importer for tracks that have no animation
data/Manifest.txt CHANGED
@@ -4,6 +4,7 @@ Manifest.txt
4
4
  README.txt
5
5
  Rakefile
6
6
  bin/tracksperanto
7
+ foo.rb
7
8
  lib/.DS_Store
8
9
  lib/export/base.rb
9
10
  lib/export/equalizer3.rb
@@ -47,6 +48,7 @@ lib/tracksperanto/safety.rb
47
48
  lib/tracksperanto/simple_export.rb
48
49
  lib/tracksperanto/tracker.rb
49
50
  lib/tracksperanto/zip_tuples.rb
51
+ serveur.julik.nl
50
52
  test/.DS_Store
51
53
  test/export/.DS_Store
52
54
  test/export/README_EXPORT_TESTS.txt
@@ -74,6 +76,7 @@ test/export/test_syntheyes_export.rb
74
76
  test/helper.rb
75
77
  test/import/.DS_Store
76
78
  test/import/samples/.DS_Store
79
+ test/import/samples/018.nk
77
80
  test/import/samples/3de_export_cube.txt
78
81
  test/import/samples/3de_export_v3.txt
79
82
  test/import/samples/flyover2DP_syntheyes.txt
@@ -86,12 +89,12 @@ test/import/samples/kipPointsMatchmover.rz2
86
89
  test/import/samples/mayalive_kipShot.txt
87
90
  test/import/samples/megaTrack.action.3dtrack.stabilizer
88
91
  test/import/samples/one_shake_tracker.txt
89
- test/import/samples/018.nk
90
92
  test/import/samples/one_shake_tracker_from_first.txt
91
93
  test/import/samples/one_tracker_with_break.nk
92
94
  test/import/samples/one_tracker_with_break_in_grp.nk
93
95
  test/import/samples/shake_tracker_nodes.shk
94
96
  test/import/samples/shake_tracker_nodes_to_syntheyes.txt
97
+ test/import/samples/shake_tracker_with_no_anim.shk
95
98
  test/import/samples/sourcefile_pftrack.2dt
96
99
  test/import/samples/three_tracks_in_one_stabilizer.shk
97
100
  test/import/samples/two_shake_trackers.txt
data/foo.rb ADDED
@@ -0,0 +1 @@
1
+ class Foo < Tracksperanto::Import::Base; end
@@ -6,7 +6,7 @@ class Tracksperanto::Export::SynthEyes < Tracksperanto::Export::Base
6
6
  end
7
7
 
8
8
  def self.human_name
9
- "Syntheyes 2D tracker .txt file"
9
+ "Syntheyes 2D tracker paths file"
10
10
  end
11
11
 
12
12
  def start_export( img_width, img_height)
@@ -193,7 +193,13 @@ class Tracksperanto::Import::ShakeScript < Tracksperanto::Import::Base
193
193
  end
194
194
 
195
195
  def collect_tracker(name, x_curve, y_curve, corr_curve, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12)
196
+ unless x_curve.is_a?(Array) && y_curve.is_a?(Array)
197
+ report_progress("Tracker #{name} had no anim or unsupported interpolation and can't be recovered")
198
+ return
199
+ end
200
+
196
201
  report_progress("Scavenging tracker #{name}")
202
+
197
203
  keyframes = zip_curve_tuples(x_curve, y_curve, corr_curve).map do | (frame, x, y, corr) |
198
204
  Tracksperanto::Keyframe.new(:frame => frame - 1, :abs_x => x, :abs_y => y, :residual => (1 - corr))
199
205
  end
@@ -1,7 +1,7 @@
1
1
  class Tracksperanto::Import::Syntheyes < Tracksperanto::Import::Base
2
2
 
3
3
  def self.human_name
4
- "Syntheyes tracker export (UV) file"
4
+ "Syntheyes 2D tracker paths file"
5
5
  end
6
6
 
7
7
  def parse(io)
data/lib/tracksperanto.rb CHANGED
@@ -4,7 +4,7 @@ require 'tempfile'
4
4
 
5
5
  module Tracksperanto
6
6
  PATH = File.expand_path(File.dirname(__FILE__))
7
- VERSION = '1.5.3'
7
+ VERSION = '1.5.4'
8
8
 
9
9
  module Import; end
10
10
  module Export; end
data/serveur.julik.nl ADDED
Binary file
@@ -10,6 +10,6 @@ class SynthEyesExportTest < Test::Unit::TestCase
10
10
 
11
11
  def test_exporter_meta
12
12
  assert_equal "syntheyes_2dt.txt", Tracksperanto::Export::SynthEyes.desc_and_extension
13
- assert_equal "Syntheyes 2D tracker .txt file", Tracksperanto::Export::SynthEyes.human_name
13
+ assert_equal "Syntheyes 2D tracker paths file", Tracksperanto::Export::SynthEyes.human_name
14
14
  end
15
15
  end
@@ -0,0 +1,6 @@
1
+ Tracker36 = Tracker(Expand1, "1-1580", "1/64", "luminance", 0.75,
2
+ "use start frame", 0.5, "stop", 1, 1, "v2.0", 0.3, 0.59,
3
+ 0.11, 0, 10, "track1", width/2, height/2, 1, width/2-height/30,
4
+ width/2+height/30, height/2-height/30, height/2+height/30,
5
+ width/2-height/15, width/2+height/15, height/2-height/15,
6
+ height/2+height/15, width/2, height/2, 1, 1);
@@ -21,7 +21,15 @@ class ShakeScriptImportTest < Test::Unit::TestCase
21
21
  second_kf = t.keyframes[1]
22
22
  assert_in_delta 0.00129, second_kf.residual, DELTA
23
23
  end
24
-
24
+
25
+ def test_parse_tracker_node_with_no_animation
26
+ fixture = File.open(File.dirname(__FILE__) + '/samples/shake_tracker_with_no_anim.shk')
27
+ assert_nothing_raised do
28
+ trackers = Tracksperanto::Import::ShakeScript.new.parse(fixture)
29
+ assert_equal 0, trackers.length
30
+ end
31
+ end
32
+
25
33
  def test_parsing_two_tracks_in_one_tracker_node
26
34
  fixture = File.open(File.dirname(__FILE__) + '/samples/two_tracks_in_one_tracker.shk')
27
35
 
@@ -4,7 +4,7 @@ class SyntheyesImportTest < Test::Unit::TestCase
4
4
  DELTA = 0.9 # our SynthEyes sample is somewhat inaccurate :-P
5
5
  def test_introspects_properly
6
6
  i = Tracksperanto::Import::Syntheyes
7
- assert_equal "Syntheyes tracker export (UV) file", i.human_name
7
+ assert_equal "Syntheyes 2D tracker paths file", i.human_name
8
8
  assert !i.autodetects_size?
9
9
  end
10
10
 
@@ -1,18 +1,18 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{tracksperanto}
5
- s.version = "1.5.2"
5
+ s.version = "1.5.4"
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-10}
9
+ s.date = %q{2009-10-25}
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 = [".DS_Store", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/tracksperanto", "lib/.DS_Store", "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/simple_export.rb", "lib/tracksperanto/tracker.rb", "lib/tracksperanto/zip_tuples.rb", "test/.DS_Store", "test/export/.DS_Store", "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/.DS_Store", "test/import/samples/.DS_Store", "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/018.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_simple_export.rb", "test/test_tracker.rb", "tracksperanto.gemspec"]
15
+ s.files = [".DS_Store", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/tracksperanto", "foo.rb", "lib/.DS_Store", "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/simple_export.rb", "lib/tracksperanto/tracker.rb", "lib/tracksperanto/zip_tuples.rb", "serveur.julik.nl", "test/.DS_Store", "test/export/.DS_Store", "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/.DS_Store", "test/import/samples/.DS_Store", "test/import/samples/018.nk", "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/shake_tracker_with_no_anim.shk", "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_simple_export.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"]
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.5.3
4
+ version: 1.5.4
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-18 00:00:00 +02:00
12
+ date: 2009-10-25 01:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -50,6 +50,7 @@ files:
50
50
  - README.txt
51
51
  - Rakefile
52
52
  - bin/tracksperanto
53
+ - foo.rb
53
54
  - lib/.DS_Store
54
55
  - lib/export/base.rb
55
56
  - lib/export/equalizer3.rb
@@ -93,6 +94,7 @@ files:
93
94
  - lib/tracksperanto/simple_export.rb
94
95
  - lib/tracksperanto/tracker.rb
95
96
  - lib/tracksperanto/zip_tuples.rb
97
+ - serveur.julik.nl
96
98
  - test/.DS_Store
97
99
  - test/export/.DS_Store
98
100
  - test/export/README_EXPORT_TESTS.txt
@@ -120,6 +122,7 @@ files:
120
122
  - test/helper.rb
121
123
  - test/import/.DS_Store
122
124
  - test/import/samples/.DS_Store
125
+ - test/import/samples/018.nk
123
126
  - test/import/samples/3de_export_cube.txt
124
127
  - test/import/samples/3de_export_v3.txt
125
128
  - test/import/samples/flyover2DP_syntheyes.txt
@@ -132,12 +135,12 @@ files:
132
135
  - test/import/samples/mayalive_kipShot.txt
133
136
  - test/import/samples/megaTrack.action.3dtrack.stabilizer
134
137
  - test/import/samples/one_shake_tracker.txt
135
- - test/import/samples/018.nk
136
138
  - test/import/samples/one_shake_tracker_from_first.txt
137
139
  - test/import/samples/one_tracker_with_break.nk
138
140
  - test/import/samples/one_tracker_with_break_in_grp.nk
139
141
  - test/import/samples/shake_tracker_nodes.shk
140
142
  - test/import/samples/shake_tracker_nodes_to_syntheyes.txt
143
+ - test/import/samples/shake_tracker_with_no_anim.shk
141
144
  - test/import/samples/sourcefile_pftrack.2dt
142
145
  - test/import/samples/three_tracks_in_one_stabilizer.shk
143
146
  - test/import/samples/two_shake_trackers.txt