tracksperanto 3.5.5 → 3.5.6
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/Gemfile +2 -2
- data/History.txt +4 -0
- data/MIT_LICENSE.txt +1 -1
- data/README.md +3 -3
- data/Rakefile +8 -0
- data/lib/import/syntheyes.rb +7 -1
- data/lib/import/syntheyes_all_tracker_paths.rb +7 -0
- data/lib/tracksperanto.rb +1 -1
- data/lib/tracksperanto/blacklist.rb +1 -0
- data/test/import/test_syntheyes_all_tracker_paths_import.rb +2 -0
- data/test/import/test_syntheyes_import.rb +3 -1
- data/test/test_blacklist.rb +1 -0
- data/tracksperanto.gemspec +2 -2
- metadata +4 -4
data/Gemfile
CHANGED
@@ -18,11 +18,11 @@ group :development do
|
|
18
18
|
gem "rake"
|
19
19
|
gem "linebyline"
|
20
20
|
|
21
|
+
gem "jeweler", '1.8.4' # Last one without the stupid nokogiri dependency
|
22
|
+
|
21
23
|
if RUBY_VERSION < "1.9"
|
22
|
-
gem "jeweler", '1.8.4' # Last one without the stupid nokogiri dependency
|
23
24
|
gem "flexmock", "~> 0.8", :require => %w( flexmock flexmock/test_unit ) # Max. supported on 1.8
|
24
25
|
else
|
25
|
-
gem "jeweler", '~> 1.8'
|
26
26
|
gem "flexmock", "~> 1.3.2", :require => %w( flexmock flexmock/test_unit )
|
27
27
|
end
|
28
28
|
|
data/History.txt
CHANGED
data/MIT_LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -108,7 +108,7 @@ If you want your own copy of the web application at your facility we can discuss
|
|
108
108
|
* Shake .shk script file
|
109
109
|
* Shake .txt tracker file and Nuke CameraTracker auto tracks export
|
110
110
|
* Syntheyes "All Tracker Paths" export .txt file
|
111
|
-
* Syntheyes
|
111
|
+
* Syntheyes "Tracker 2-D paths" file
|
112
112
|
|
113
113
|
### Formats Tracksperanto can export to
|
114
114
|
|
@@ -144,8 +144,8 @@ Consult the --help option to see what is available.
|
|
144
144
|
|
145
145
|
## Development
|
146
146
|
|
147
|
-
](http://badge.fury.io/rb/tracksperanto)
|
148
|
+
[](https://travis-ci.org/guerilla-di/tracksperanto)
|
149
149
|
|
150
150
|
If you are interested in reusing Tracksperanto's code or adding modules to the software consult
|
151
151
|
the [short developer introduction](https://github.com/guerilla-di/tracksperanto/blob/master/CONTRIBUTING.md)
|
data/Rakefile
CHANGED
@@ -65,5 +65,13 @@ after :test do
|
|
65
65
|
|
66
66
|
end
|
67
67
|
|
68
|
+
# Automatically update the LICENSE
|
69
|
+
after :test do
|
70
|
+
license_path = File.dirname(__FILE__) + "/MIT_LICENSE.txt"
|
71
|
+
license_text = File.read(license_path)
|
72
|
+
license_text.gsub!(/2009\-(\d+)/, "2009-#{Time.now.year + 1}")
|
73
|
+
File.open(license_path, "w"){|f| f << license_text }
|
74
|
+
end
|
75
|
+
|
68
76
|
task :default => [ :test ]
|
69
77
|
|
data/lib/import/syntheyes.rb
CHANGED
@@ -3,7 +3,13 @@ class Tracksperanto::Import::Syntheyes < Tracksperanto::Import::Base
|
|
3
3
|
include Tracksperanto::UVCoordinates
|
4
4
|
|
5
5
|
def self.human_name
|
6
|
-
"Syntheyes
|
6
|
+
"Syntheyes \"Tracker 2-D paths\" file"
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.known_snags
|
10
|
+
"Syntheyes has two formats for exporting tracks. One is called \"Tracker 2-D paths\" in the menu. " +
|
11
|
+
"The other is called \"All Tracker Paths\". You told Tracksperanto to treat your file as " +
|
12
|
+
"\"Tracker 2-D paths\", if something goes wrong might be a good idea to try the other Tracksperanto input format"
|
7
13
|
end
|
8
14
|
|
9
15
|
def each
|
@@ -7,6 +7,13 @@ class Tracksperanto::Import::SyntheyesAllTrackerPaths < Tracksperanto::Import::B
|
|
7
7
|
CHARACTERS_OR_QUOTES = /[AZaz"]/
|
8
8
|
TRACKER_KEYFRAME = /^(\d+) ((\d+)\.(\d+)) ((\d+)\.(\d+))/
|
9
9
|
|
10
|
+
def self.known_snags
|
11
|
+
"Syntheyes has two formats for exporting tracks. One is called \"Tracker 2-D paths\" in the menu. " +
|
12
|
+
"The other is called \"All Tracker Paths\". You told Tracksperanto to treat your file as " +
|
13
|
+
"\"All Tracker Paths\", if something goes wrong might be a good idea to try the other Tracksperanto input format"
|
14
|
+
end
|
15
|
+
|
16
|
+
|
10
17
|
def each
|
11
18
|
t = Tracksperanto::Tracker.new
|
12
19
|
while line = @io.gets do
|
data/lib/tracksperanto.rb
CHANGED
@@ -24,6 +24,7 @@ class Tracksperanto::Blacklist
|
|
24
24
|
/\.(abc|fbx)$/ => 'We cannot import 3D scenes such as Alembic or FBX.',
|
25
25
|
'.3de' => 'We cannot handle 3DE project files directly, please export your 2D tracks in a compatible format instead.',
|
26
26
|
'.bpj' => "We cannot handle Boujou projects directly, please export your feature tracks from Boujou as a text file",
|
27
|
+
'.py' => 'We cannot handle Python scripts - please export your 2D tracks in a compatible format instead.'
|
27
28
|
}
|
28
29
|
end
|
29
30
|
end
|
@@ -8,6 +8,8 @@ class SyntheyesAllPathsImportTest < Test::Unit::TestCase
|
|
8
8
|
i = Tracksperanto::Import::SyntheyesAllTrackerPaths
|
9
9
|
assert_equal "Syntheyes \"All Tracker Paths\" export .txt file", i.human_name
|
10
10
|
assert !i.autodetects_size?
|
11
|
+
assert_not_nil i.known_snags
|
12
|
+
assert !i.known_snags.empty?
|
11
13
|
end
|
12
14
|
|
13
15
|
def test_parsing_from_importable
|
@@ -6,8 +6,10 @@ class SyntheyesImportTest < Test::Unit::TestCase
|
|
6
6
|
|
7
7
|
def test_introspects_properly
|
8
8
|
i = Tracksperanto::Import::Syntheyes
|
9
|
-
assert_equal
|
9
|
+
assert_equal 'Syntheyes "Tracker 2-D paths" file', i.human_name
|
10
10
|
assert !i.autodetects_size?
|
11
|
+
assert_not_nil i.known_snags
|
12
|
+
assert !i.known_snags.empty?
|
11
13
|
end
|
12
14
|
|
13
15
|
def test_parsing_from_importable
|
data/test/test_blacklist.rb
CHANGED
@@ -37,6 +37,7 @@ class TestBlacklist < Test::Unit::TestCase
|
|
37
37
|
file.abc
|
38
38
|
file.3de
|
39
39
|
file.bpj
|
40
|
+
file.py
|
40
41
|
).each do | filename |
|
41
42
|
error = assert_raise(Tracksperanto::UnsupportedFormatError, "Should fail for #{filename.inspect}") do
|
42
43
|
Tracksperanto::Blacklist.raise_if_format_unsupported(filename)
|
data/tracksperanto.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{tracksperanto}
|
8
|
-
s.version = "3.5.
|
8
|
+
s.version = "3.5.6"
|
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-11-
|
12
|
+
s.date = %q{2014-11-29}
|
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}
|
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 3.5.
|
9
|
+
- 6
|
10
|
+
version: 3.5.6
|
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-11-
|
18
|
+
date: 2014-11-29 00:00:00 +01:00
|
19
19
|
default_executable: tracksperanto
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|