tracksperanto 2.11.3 → 2.12.0

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
+ === 2.12.0
2
+
3
+ * Add an export module for Nuke's CameraTracker node. This is just like the Shake format, except that tracker names have to be special.
4
+
1
5
  === 2.11.3
2
6
 
3
7
  * Hint that we only support specific nodes in Nuke
@@ -0,0 +1,26 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # Export for Nuke's CameraTracker node. Same format as Shake Text
3
+ # except that all trackers have to be called "usertrack0" to "usertrackN"
4
+ require File.dirname(__FILE__) + "/shake_text"
5
+
6
+ class Tracksperanto::Export::NukeCameraUsertracks < Tracksperanto::Export::ShakeText
7
+
8
+ def self.desc_and_extension
9
+ "nuke_cam_trk_autotracks.txt"
10
+ end
11
+
12
+ def self.human_name
13
+ "Nuke CameraTracker node autotracks (enable import/export in the Tracking tab)"
14
+ end
15
+
16
+ def start_export(w, h)
17
+ super
18
+ @counter = 0
19
+ end
20
+
21
+ NAMING = "autotrack%d" # change to "usertrack%d" if user tracks are needed
22
+ def start_tracker_segment(tracker_name)
23
+ super(NAMING % @counter)
24
+ @counter += 1
25
+ end
26
+ end
@@ -10,7 +10,7 @@ class Tracksperanto::Export::ShakeText < Tracksperanto::Export::Base
10
10
  end
11
11
 
12
12
  def self.human_name
13
- "Shake trackers in a .txt file (also usable with Nuke's CameraTracker)"
13
+ "Shake trackers in a .txt file"
14
14
  end
15
15
 
16
16
  def start_tracker_segment(tracker_name)
data/lib/tracksperanto.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Tracksperanto
5
5
  PATH = File.expand_path(File.dirname(__FILE__))
6
- VERSION = '2.11.3'
6
+ VERSION = '2.12.0'
7
7
 
8
8
  module Import; end
9
9
  module Export; end
@@ -0,0 +1,48 @@
1
+ TrackName autotrack0
2
+ Frame X Y Correlation
3
+ 1.00 0.000 1080.000 1.000
4
+ 2.00 96.000 874.800 0.952
5
+ 3.00 192.000 691.200 0.905
6
+ 4.00 288.000 529.200 0.857
7
+ 5.00 384.000 388.800 0.810
8
+ 6.00 480.000 270.000 0.762
9
+ 7.00 576.000 172.800 0.714
10
+ 8.00 672.000 97.200 0.667
11
+ 9.00 768.000 43.200 0.619
12
+ 10.00 864.000 10.800 0.571
13
+ 13.00 1152.000 43.200 0.429
14
+ 14.00 1248.000 97.200 0.381
15
+ 15.00 1344.000 172.800 0.333
16
+ 16.00 1440.000 270.000 0.286
17
+ 17.00 1536.000 388.800 0.238
18
+ 18.00 1632.000 529.200 0.190
19
+ 19.00 1728.000 691.200 0.143
20
+ 20.00 1824.000 874.800 0.095
21
+ 21.00 1920.000 1080.000 0.048
22
+
23
+ TrackName autotrack1
24
+ Frame X Y Correlation
25
+ 1.00 1920.000 0.000 1.000
26
+ 2.00 1824.000 205.200 0.952
27
+ 3.00 1728.000 388.800 0.905
28
+ 4.00 1632.000 550.800 0.857
29
+ 5.00 1536.000 691.200 0.810
30
+ 6.00 1440.000 810.000 0.762
31
+ 7.00 1344.000 907.200 0.714
32
+ 8.00 1248.000 982.800 0.667
33
+ 9.00 1152.000 1036.800 0.619
34
+ 10.00 1056.000 1069.200 0.571
35
+ 13.00 768.000 1036.800 0.429
36
+ 14.00 672.000 982.800 0.381
37
+ 15.00 576.000 907.200 0.333
38
+ 16.00 480.000 810.000 0.286
39
+ 17.00 384.000 691.200 0.238
40
+ 18.00 288.000 550.800 0.190
41
+ 19.00 192.000 388.800 0.143
42
+ 20.00 96.000 205.200 0.095
43
+ 21.00 0.000 0.000 0.048
44
+
45
+ TrackName autotrack2
46
+ Frame X Y Correlation
47
+ 1.00 970.000 550.000 1.000
48
+
@@ -0,0 +1,16 @@
1
+ # -*- encoding : utf-8 -*-
2
+ require File.expand_path(File.dirname(__FILE__)) + '/../helper'
3
+
4
+ class NukeCamTrackerExportTest < Test::Unit::TestCase
5
+ include ParabolicTracks
6
+ P = File.dirname(__FILE__) + "/samples/ref_NukeCameraTrackerUsertracks.txt"
7
+
8
+ def test_export_output_written
9
+ ensure_same_output Tracksperanto::Export::NukeCameraUsertracks, P
10
+ end
11
+
12
+ def test_exporter_meta
13
+ assert_equal "nuke_cam_trk_autotracks.txt", Tracksperanto::Export::NukeCameraUsertracks.desc_and_extension
14
+ assert_equal "Nuke CameraTracker node autotracks (enable import/export in the Tracking tab)", Tracksperanto::Export::NukeCameraUsertracks.human_name
15
+ end
16
+ end
@@ -11,6 +11,6 @@ class ShakeTextExportTest < Test::Unit::TestCase
11
11
 
12
12
  def test_exporter_meta
13
13
  assert_equal "shake_trackers.txt", Tracksperanto::Export::ShakeText.desc_and_extension
14
- assert_equal "Shake trackers in a .txt file (also usable with Nuke's CameraTracker)", Tracksperanto::Export::ShakeText.human_name
14
+ assert_equal "Shake trackers in a .txt file", Tracksperanto::Export::ShakeText.human_name
15
15
  end
16
16
  end
data/test/test_cli.rb CHANGED
@@ -40,7 +40,7 @@ class TestCli < Test::Unit::TestCase
40
40
  flm.stabilizer flm_3de_v3.txt flm_3de_v4.txt flm_boujou_text.txt flm_flame.stabilizer
41
41
  flm_matchmover.rz2 flm_mayalive.txt flm_nuke.nk flm_pftrack_2011_pfmatchit.txt flm_pftrack_v4.2dt
42
42
  flm_pftrack_v5.2dt flm_shake_trackers.txt flm_syntheyes_2dt.txt flm_flame_cornerpin.stabilizer
43
- flm_tracksperanto_ruby.rb flm_mayaLocators.ma flm_createNulls.jsx flm_xsi_nulls.py
43
+ flm_tracksperanto_ruby.rb flm_mayaLocators.ma flm_createNulls.jsx flm_xsi_nulls.py flm_nuke_cam_trk_autotracks.txt
44
44
  )
45
45
  assert_match /Found and converted 1 trackers with 232 keyframes\./, o, "Should have output coversion statistics"
46
46
  assert_same_set fs, Dir.entries(TEMP_DIR)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "tracksperanto"
8
- s.version = "2.11.3"
8
+ s.version = "2.12.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 = "2012-09-12"
12
+ s.date = "2012-10-01"
13
13
  s.description = "Converts 2D track exports between different apps like Flame, MatchMover, PFTrack..."
14
14
  s.email = "me@julik.nl"
15
15
  s.executables = ["tracksperanto"]
@@ -36,6 +36,7 @@ Gem::Specification.new do |s|
36
36
  "lib/export/maya_live.rb",
37
37
  "lib/export/maya_locators.rb",
38
38
  "lib/export/mux.rb",
39
+ "lib/export/nuke_cam_tk_usertracks.rb",
39
40
  "lib/export/nuke_script.rb",
40
41
  "lib/export/pfmatchit.rb",
41
42
  "lib/export/pftrack.rb",
@@ -103,6 +104,7 @@ Gem::Specification.new do |s|
103
104
  "test/export/samples/ref_MayaLocators.ma",
104
105
  "test/export/samples/ref_Mayalive.txt",
105
106
  "test/export/samples/ref_Mayalive_CustomAspect.txt",
107
+ "test/export/samples/ref_NukeCameraTrackerUsertracks.txt",
106
108
  "test/export/samples/ref_NukeScript.nk",
107
109
  "test/export/samples/ref_PFMatchit.2dt",
108
110
  "test/export/samples/ref_PFTrack.2dt",
@@ -127,6 +129,7 @@ Gem::Specification.new do |s|
127
129
  "test/export/test_maya_live_export.rb",
128
130
  "test/export/test_maya_locators_export.rb",
129
131
  "test/export/test_mux.rb",
132
+ "test/export/test_nuke_camtracker_export.rb",
130
133
  "test/export/test_nuke_export.rb",
131
134
  "test/export/test_pfmatchit_export.rb",
132
135
  "test/export/test_pftrack5_export.rb",
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: 2.11.3
4
+ version: 2.12.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-12 00:00:00.000000000 Z
12
+ date: 2012-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: obuf
@@ -199,6 +199,7 @@ files:
199
199
  - lib/export/maya_live.rb
200
200
  - lib/export/maya_locators.rb
201
201
  - lib/export/mux.rb
202
+ - lib/export/nuke_cam_tk_usertracks.rb
202
203
  - lib/export/nuke_script.rb
203
204
  - lib/export/pfmatchit.rb
204
205
  - lib/export/pftrack.rb
@@ -266,6 +267,7 @@ files:
266
267
  - test/export/samples/ref_MayaLocators.ma
267
268
  - test/export/samples/ref_Mayalive.txt
268
269
  - test/export/samples/ref_Mayalive_CustomAspect.txt
270
+ - test/export/samples/ref_NukeCameraTrackerUsertracks.txt
269
271
  - test/export/samples/ref_NukeScript.nk
270
272
  - test/export/samples/ref_PFMatchit.2dt
271
273
  - test/export/samples/ref_PFTrack.2dt
@@ -290,6 +292,7 @@ files:
290
292
  - test/export/test_maya_live_export.rb
291
293
  - test/export/test_maya_locators_export.rb
292
294
  - test/export/test_mux.rb
295
+ - test/export/test_nuke_camtracker_export.rb
293
296
  - test/export/test_nuke_export.rb
294
297
  - test/export/test_pfmatchit_export.rb
295
298
  - test/export/test_pftrack5_export.rb
@@ -363,7 +366,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
363
366
  version: '0'
364
367
  segments:
365
368
  - 0
366
- hash: -3129268817076589173
369
+ hash: 1672387302820821505
367
370
  required_rubygems_version: !ruby/object:Gem::Requirement
368
371
  none: false
369
372
  requirements: