tracksperanto 3.0.0 → 3.0.1

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 CHANGED
@@ -1,3 +1,7 @@
1
+ === 3.0.1
2
+
3
+ * Subtract 1 frame from PFTrack imports (PFTrack starts on 1)
4
+
1
5
  === 3.0.0
2
6
 
3
7
  * Middleware renamed to Tools
@@ -76,7 +76,7 @@ class Tracksperanto::Import::PFTrack < Tracksperanto::Import::Base
76
76
  (1..num_of_keyframes).map do | keyframe_idx |
77
77
  report_progress("Reading keyframe #{keyframe_idx} of #{num_of_keyframes} in #{t.name}")
78
78
  f, x, y, residual = io.gets.chomp.split
79
- t.keyframe!(:frame => f, :abs_x => from_pfcoord(x), :abs_y => from_pfcoord(y), :residual => residual.to_f * 8)
79
+ t.keyframe!(:frame => f.to_f - 1, :abs_x => from_pfcoord(x), :abs_y => from_pfcoord(y), :residual => residual.to_f * 8)
80
80
  end
81
81
  end
82
82
 
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 = '3.0.0'
6
+ VERSION = '3.0.1'
7
7
 
8
8
  module Import; end
9
9
  module Export; end
@@ -37,7 +37,7 @@ class PFTrackImportTest < Test::Unit::TestCase
37
37
  assert_equal "Tracker1", trackers[0].name
38
38
  assert_equal 341, trackers[0].keyframes.length
39
39
 
40
- assert_equal 41, first_kf.frame
40
+ assert_equal 40, first_kf.frame
41
41
  assert_in_delta 985.111, first_kf.abs_x, DELTA
42
42
  assert_in_delta 30.72, first_kf.abs_y, DELTA
43
43
  assert_in_delta 0.0, first_kf.residual, DELTA
@@ -216,11 +216,11 @@ SetKey(
216
216
  "mainWin.tabChild8", "0.Other",
217
217
  "mainWin.tabChild9", "0.Curve_Editor_2",
218
218
  "mainWin.width", "1914",
219
- "mainWin.xPos", "5",
219
+ "mainWin.xPos", "3",
220
220
  "mainWin.yPos", "7",
221
221
  "nodeView.Tracker1.t", "0",
222
- "nodeView.Tracker1.x", "295.25",
223
- "nodeView.Tracker1.y", "200.75",
222
+ "nodeView.Tracker1.x", "295",
223
+ "nodeView.Tracker1.y", "200",
224
224
  "nodeView.subpixel_grid.t", "1",
225
225
  "nodeView.subpixel_grid.tnChannel", "0",
226
226
  "nodeView.subpixel_grid.tnTime", "1",
@@ -299,10 +299,10 @@ SetKey(
299
299
  "vDesk.0.updateTog.1.cycle", "-1,0,0,1",
300
300
  "vDesk.0.w", "1142",
301
301
  "vDesk.0.x", "0",
302
- "vDesk.0.xPan", "-31316.8867",
302
+ "vDesk.0.xPan", "-16528.7188",
303
303
  "vDesk.0.xliderValue", "0",
304
304
  "vDesk.0.y", "0",
305
- "vDesk.0.yPan", "-25363.2031",
306
- "vDesk.0.zoom", "44.98475",
305
+ "vDesk.0.yPan", "-13304.2539",
306
+ "vDesk.0.zoom", "23.8920116",
307
307
  "vDesk.viewers", "1"
308
308
  );
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "tracksperanto"
8
- s.version = "3.0.0"
8
+ s.version = "3.0.1"
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-10-23"
12
+ s.date = "2012-10-30"
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.0.0
4
+ version: 3.0.1
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-10-23 00:00:00.000000000 Z
12
+ date: 2012-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: obuf
@@ -376,7 +376,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
376
376
  version: '0'
377
377
  segments:
378
378
  - 0
379
- hash: 3337018402243873994
379
+ hash: -236835954764348334
380
380
  required_rubygems_version: !ruby/object:Gem::Requirement
381
381
  none: false
382
382
  requirements: