tracksperanto 3.3.7 → 3.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +5 -0
- data/README.rdoc +1 -1
- data/lib/import/nuke_script.rb +10 -3
- data/lib/tracksperanto.rb +1 -1
- data/test/import/test_nuke_import.rb +15 -1
- data/tracksperanto.gemspec +2 -2
- metadata +3 -3
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -100,7 +100,7 @@ If you want your own copy of the web application at your facility we can discuss
|
|
100
100
|
* MatchMover REALVIZ Ascii Point Tracks .rz2 file
|
101
101
|
* MatchMover RZML .rzml file
|
102
102
|
* Maya Live track export file
|
103
|
-
* Nuke .nk script file with Tracker, Reconcile3D, PlanarTracker and CornerPin nodes
|
103
|
+
* Nuke .nk script file with Tracker, Reconcile3D, Transform2D, PlanarTracker and CornerPin nodes
|
104
104
|
* PFTrack/PFMatchit .2dt file
|
105
105
|
* Shake .shk script file
|
106
106
|
* Shake .txt tracker file and Nuke CameraTracker auto tracks export
|
data/lib/import/nuke_script.rb
CHANGED
@@ -5,7 +5,7 @@ require 'tickly'
|
|
5
5
|
class Tracksperanto::Import::NukeScript < Tracksperanto::Import::Base
|
6
6
|
|
7
7
|
def self.human_name
|
8
|
-
"Nuke .nk script file with Tracker, Reconcile3D, PlanarTracker and CornerPin nodes"
|
8
|
+
"Nuke .nk script file with Tracker, Reconcile3D, Transform2D, PlanarTracker and CornerPin nodes"
|
9
9
|
end
|
10
10
|
|
11
11
|
def self.distinct_file_ext
|
@@ -13,8 +13,8 @@ class Tracksperanto::Import::NukeScript < Tracksperanto::Import::Base
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.known_snags
|
16
|
-
|
17
|
-
|
16
|
+
"The only supported nodes that we can extract tracks from are Transform2D, Reconcile3D, " +
|
17
|
+
"PlanarTracker and Tracker (supported Nuke versions are 5, 6 and 7)"
|
18
18
|
end
|
19
19
|
|
20
20
|
def each
|
@@ -25,6 +25,7 @@ class Tracksperanto::Import::NukeScript < Tracksperanto::Import::Base
|
|
25
25
|
parser.add_node_handler_class(PlanarTracker)
|
26
26
|
parser.add_node_handler_class(Tracker4)
|
27
27
|
parser.add_node_handler_class(CornerPin2D)
|
28
|
+
parser.add_node_handler_class(Transform)
|
28
29
|
|
29
30
|
parser.parse(@io) do | node |
|
30
31
|
node.trackers.each do | t |
|
@@ -90,6 +91,12 @@ class Tracksperanto::Import::NukeScript < Tracksperanto::Import::Base
|
|
90
91
|
end
|
91
92
|
end
|
92
93
|
|
94
|
+
class Transform < Tracker3
|
95
|
+
def point_channels
|
96
|
+
%w( translate center )
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
93
100
|
# Planar tracker in Nuke 6
|
94
101
|
class PlanarTracker1_0 < Tracker3
|
95
102
|
def point_channels
|
data/lib/tracksperanto.rb
CHANGED
@@ -6,8 +6,10 @@ class NukeImportTest < Test::Unit::TestCase
|
|
6
6
|
|
7
7
|
def test_introspects_properly
|
8
8
|
i = Tracksperanto::Import::NukeScript
|
9
|
-
assert_equal "Nuke .nk script file with Tracker, Reconcile3D, PlanarTracker and CornerPin nodes",
|
9
|
+
assert_equal "Nuke .nk script file with Tracker, Reconcile3D, Transform2D, PlanarTracker and CornerPin nodes",
|
10
|
+
i.human_name
|
10
11
|
assert !i.autodetects_size?
|
12
|
+
assert_not_nil i.known_snags
|
11
13
|
end
|
12
14
|
|
13
15
|
def test_parsing_big_file_from_nuke
|
@@ -75,6 +77,18 @@ class NukeImportTest < Test::Unit::TestCase
|
|
75
77
|
assert_equal ref_names, trackers.map{|e| e.name }
|
76
78
|
end
|
77
79
|
|
80
|
+
def test_parsing_xform2d_nuke7
|
81
|
+
fixture = File.open(File.dirname(__FILE__) + '/samples/nuke/nuke7_transform2d.nk')
|
82
|
+
|
83
|
+
parser = Tracksperanto::Import::NukeScript.new(:io => fixture)
|
84
|
+
parser.width = 1920
|
85
|
+
parser.height = 1080
|
86
|
+
|
87
|
+
trackers = parser.to_a
|
88
|
+
ref_names = %w( Transform_for_AE_translate Transform_for_AE_center )
|
89
|
+
assert_equal ref_names, trackers.map{|e| e.name }
|
90
|
+
end
|
91
|
+
|
78
92
|
def test_parsing_from_nuke
|
79
93
|
fixture = File.open(File.dirname(__FILE__) + '/samples/nuke/one_tracker_with_break.nk')
|
80
94
|
|
data/tracksperanto.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "tracksperanto"
|
8
|
-
s.version = "3.3.
|
8
|
+
s.version = "3.3.8"
|
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 = "2013-07
|
12
|
+
s.date = "2013-08-07"
|
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"]
|
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: 3.3.
|
4
|
+
version: 3.3.8
|
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: 2013-07
|
12
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -456,7 +456,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
456
456
|
version: '0'
|
457
457
|
segments:
|
458
458
|
- 0
|
459
|
-
hash: -
|
459
|
+
hash: -3376946387269272709
|
460
460
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
461
461
|
none: false
|
462
462
|
requirements:
|