tracksperanto 1.6.2 → 1.6.3

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.6.2 / 2009-11-25
2
+
3
+ * Fixes the Shake importer so that it doesn't apply correlation curves if they are not present or constantized to 1
4
+
1
5
  === 1.6.2 / 2009-11-15
2
6
 
3
7
  * Fixes the Reformat middleware to not suppress the end_export call. Crucial for exporters that
data/Manifest.txt CHANGED
@@ -92,6 +92,7 @@ test/import/samples/one_shake_tracker.txt
92
92
  test/import/samples/one_shake_tracker_from_first.txt
93
93
  test/import/samples/one_tracker_with_break.nk
94
94
  test/import/samples/one_tracker_with_break_in_grp.nk
95
+ test/import/samples/shake_script_from_boujou.shk
95
96
  test/import/samples/shake_tracker_nodes.shk
96
97
  test/import/samples/shake_tracker_nodes_to_syntheyes.txt
97
98
  test/import/samples/shake_tracker_with_no_anim.shk
@@ -30,6 +30,8 @@ class Tracksperanto::Import::ShakeScript < Tracksperanto::Import::Base
30
30
  end
31
31
  end
32
32
  alias_method :nspline, :linear
33
+ alias_method :jspline, :linear
34
+
33
35
 
34
36
  # image Tracker(
35
37
  # image In,
@@ -201,13 +203,21 @@ class Tracksperanto::Import::ShakeScript < Tracksperanto::Import::Base
201
203
 
202
204
  report_progress("Scavenging tracker #{name}")
203
205
 
204
- keyframes = zip_curve_tuples(x_curve, y_curve, corr_curve).map do | (frame, x, y, corr) |
205
- Tracksperanto::Keyframe.new(:frame => frame - 1, :abs_x => x, :abs_y => y, :residual => (1 - corr))
206
+ curve_set = combine_curves(x_curve, y_curve, corr_curve)
207
+
208
+ keyframes = zip_curve_tuples(*curve_set).map do | (frame, x, y, corr) |
209
+ Tracksperanto::Keyframe.new(:frame => frame - 1, :abs_x => x, :abs_y => y, :residual => (1 - corr.to_f))
206
210
  end
207
211
 
208
212
  t = Tracksperanto::Tracker.new(:name => name, :keyframes => keyframes )
209
213
  self.class.accumulator.push(t)
210
214
  end
215
+
216
+ def combine_curves(x, y, corr_curve)
217
+ curve_set = [x, y]
218
+ curve_set << corr_curve if (corr_curve.respond_to?(:length) && corr_curve.length >= x.length)
219
+ curve_set
220
+ end
211
221
  end
212
222
 
213
223
  def parse(script_io)
@@ -219,4 +229,5 @@ class Tracksperanto::Import::ShakeScript < Tracksperanto::Import::Base
219
229
 
220
230
  trackers
221
231
  end
232
+
222
233
  end
@@ -8,6 +8,7 @@ module Tracksperanto::ZipTuples
8
8
  #
9
9
  def zip_curve_tuples(*curves)
10
10
  tuples = []
11
+
11
12
  curves.each do | curve |
12
13
  curve.each do | keyframe |
13
14
  frame, value = keyframe
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.6.2'
7
+ VERSION = '1.6.3'
8
8
 
9
9
  module Import; end
10
10
  module Export; end
@@ -0,0 +1,15 @@
1
+ //boujou export: Shake Script
2
+ //(c) 2d3 2000-2003
3
+ //boujou Version: 4.1.0 28444
4
+ //Creation date : Wed Nov 25 11:30:28 2009
5
+
6
+ Boujou_Tracks = Tracker(0, "5-391", "1/16", "luminance", 0.75, "use start frame",
7
+ 0.5, "stop", 5, 391, "v2.0", 0.3, 0.59, 0.11, 0, 10
8
+ ,"Target_track_1",
9
+ JSpline(1,252.046@5,250.754@6,247.752@7,243.935@8,242.032@9,239.585@10,237.059@11,235.100@12,232.931@13,231.012@14,230.692@15,230.706@16,231.145@17,231.292@18,231.409@19,231.404@20,231.946@21,231.504@22,231.134@23,230.606@24,229.528@25,228.471@26,227.982@27,227.174@28,226.473@29,226.720@30,226.269@31,226.080@32,226.225@33,225.446@34,224.092@35,222.160@36,222.256@37,221.916@38,222.735@39,223.170@40,223.824@41,224.168@42,224.637@43,225.032@44,226.056@45,226.795@46,227.592@47,229.035@48,230.233@49,232.002@50,233.722@51,235.744@52,237.845@53,240.018@54,242.612@55,244.328@56,246.410@57,248.199@58,250.656@59,253.280@60,255.784@61,258.784@62,261.774@63,264.552@64,267.338@65,270.646@66,274.138@67,277.417@68,280.654@69,284.281@70,287.681@71,291.349@72,294.831@73,298.385@74,301.505@75,304.946@76,307.987@77,311.292@78,314.520@79,317.985@80,321.280@81,325.268@82,328.808@83,333.028@84,336.953@85,341.322@86,345.452@87,350.052@88,354.522@89,359.429@90,364.043@91,369.147@92,373.571@93,378.491@94,382.641@95,387.290@96,391.341@97,395.712@98,399.887@99,404.242@100,408.335@101,413.106@102,417.115@103,421.383@104,425.075@105,429.053@106,432.394@107,435.627@108,438.646@109,441.807@110,444.673@111,447.699@112,450.288@113,452.886@114,455.111@115,457.166@116,458.998@117,460.488@118,462.146@119,463.163@120,464.016@121,464.732@122,465.424@123,465.896@124,466.332@125,466.541@126,466.578@127,466.582@128,466.488@129,466.141@130,465.415@131,464.934@132,463.886@133,463.182@134,462.168@135,461.159@136,460.235@137,459.203@138,458.113@139,456.502@140,455.082@141,453.505@142,451.216@143,449.041@144,446.081@145,442.945@146,440.073@147,436.802@148,433.480@149,430.350@150,427.545@151,424.927@152,422.110@153,419.189@154,416.247@155,413.113@156,410.131@157,407.743@158,405.009@159,402.432@160,400.507@161,398.573@162,396.152@163,393.970@164,391.919@165,389.529@166,386.957@167,384.249@168,381.286@169,378.041@170,375.034@171,371.787@172,368.295@173,365.026@174,361.776@175,358.266@176,354.577@177,350.860@178,347.278@179,343.676@180,340.042@181,336.450@182,332.651@183,328.582@184,324.658@185,320.713@186,317.047@187,313.155@188,309.568@189,305.986@190,302.431@191,298.953@192,295.382@193,292.115@194,288.498@195,285.216@196,281.922@197,278.576@198,275.606@199,273.248@200,270.943@201,268.740@202,266.275@203,263.707@204,261.020@205,258.529@206,256.215@207,253.927@208,251.861@209,250.165@210,248.943@211,247.830@212,247.250@213,246.721@214,246.347@215,246.079@216,245.822@217,245.904@218,245.938@219,246.141@220,246.781@221,247.718@222,248.467@223,249.645@224,250.949@225,252.737@226,254.235@227,256.275@228,258.378@229,260.185@230,262.643@231,264.858@232,267.054@233,269.186@234,271.117@235,273.383@236,275.244@237,277.626@238,279.633@239,281.889@240,284.080@241,286.168@242,288.339@243,291.296@244,294.153@245,297.313@246,300.385@247,303.853@248,307.317@249,310.896@250,314.732@251,318.720@252,322.497@253,326.129@254,330.333@255,334.269@256,338.335@257,342.484@258,346.395@259,350.129@260,353.878@261,357.813@262,361.341@263,365.241@264,368.544@265,371.859@266,375.156@267,378.883@268,382.140@269,386.098@270,389.745@271,393.366@272,397.369@273,401.085@274,405.215@275,409.110@276,412.905@277,416.812@278,420.629@279,424.228@280,427.994@281,431.763@282,435.757@283,439.421@284,442.840@285,446.029@286,449.050@287,452.000@288,454.506@289,456.743@290,458.739@291,461.021@292,462.777@293,464.514@294,466.234@295,467.925@296,469.419@297,470.465@298,471.443@299,472.428@300,472.905@301,473.389@302,473.957@303,474.245@304,474.722@305,474.924@306,474.982@307,474.941@308,474.782@309,474.607@310,474.141@311,473.801@312,473.033@313,472.459@314,471.772@315,470.935@316,470.122@317,469.302@318,468.306@319,467.164@320,465.943@321,464.337@322,462.810@323,461.262@324,458.181@325,456.182@326,453.927@327,452.110@328,449.546@329,447.664@330,444.940@331,442.990@332,440.810@333,437.933@334,435.263@335,432.767@336,429.914@337,427.106@338,424.698@339,422.530@340,419.996@341,417.711@342,415.505@343,413.106@344,410.640@345,408.593@346,406.113@347,403.161@348,400.540@349,397.650@350,394.782@351,391.751@352,388.426@353,384.880@354,380.995@355,377.299@356,372.788@357,368.423@358,364.194@359,360.038@360,356.261@361,352.337@362,348.896@363,345.413@364,341.865@365,338.124@366,334.435@367,330.727@368,327.161@369,323.983@370,320.904@371,317.655@372,314.828@373,311.845@374,308.870@375,305.964@376,303.074@377,300.126@378,297.023@379,293.978@380,290.934@381,287.928@382,285.108@383,282.619@384,279.848@385,276.753@386,273.892@387,271.071@388,268.585@389,266.035@390,263.795@391),
10
+ JSpline(1,404.323@5,404.419@6,405.934@7,408.321@8,412.151@9,416.611@10,422.813@11,429.915@12,434.304@13,438.489@14,442.765@15,447.026@16,450.065@17,452.192@18,453.738@19,455.295@20,455.823@21,455.096@22,453.763@23,451.561@24,449.504@25,446.805@26,445.405@27,443.853@28,443.728@29,442.336@30,441.436@31,440.043@32,438.453@33,438.101@34,437.506@35,435.062@36,430.586@37,429.911@38,427.305@39,425.205@40,422.693@41,420.606@42,418.838@43,416.839@44,412.308@45,410.241@46,408.010@47,404.352@48,402.410@49,398.489@50,396.362@51,394.311@52,392.401@53,390.534@54,388.466@55,386.270@56,384.042@57,382.334@58,381.458@59,380.260@60,378.154@61,376.236@62,374.406@63,373.426@64,372.152@65,370.378@66,368.568@67,366.862@68,366.617@69,364.686@70,364.477@71,363.064@72,362.816@73,362.545@74,362.617@75,360.847@76,360.758@77,360.567@78,360.402@79,358.863@80,358.708@81,356.966@82,357.002@83,356.699@84,356.381@85,355.055@86,355.078@87,354.977@88,354.575@89,353.991@90,353.811@91,353.573@92,353.187@93,353.100@94,352.989@95,352.833@96,352.386@97,351.450@98,351.105@99,350.020@100,349.072@101,347.574@102,347.060@103,345.901@104,345.120@105,344.055@106,343.431@107,342.675@108,341.955@109,341.063@110,339.567@111,338.335@112,336.435@113,334.353@114,332.278@115,329.895@116,327.957@117,325.894@118,324.083@119,322.095@120,320.268@121,318.224@122,316.191@123,313.566@124,310.500@125,307.691@126,304.532@127,301.964@128,299.195@129,296.975@130,294.681@131,292.874@132,290.659@133,289.112@134,287.600@135,286.201@136,285.286@137,284.079@138,283.166@139,282.134@140,281.883@141,281.563@142,281.267@143,281.481@144,281.551@145,281.966@146,282.140@147,283.269@148,284.430@149,285.456@150,286.708@151,288.077@152,289.565@153,291.740@154,293.638@155,296.105@156,297.775@157,299.420@158,301.262@159,302.492@160,303.467@161,304.278@162,305.175@163,305.638@164,306.087@165,306.394@166,306.965@167,307.673@168,308.173@169,309.124@170,309.909@171,311.284@172,311.850@173,312.064@174,312.535@175,312.891@176,313.049@177,313.174@178,313.013@179,312.583@180,312.267@181,311.935@182,311.607@183,311.237@184,309.839@185,308.122@186,306.720@187,305.058@188,303.553@189,301.864@190,299.815@191,297.927@192,295.943@193,294.131@194,291.946@195,290.015@196,287.891@197,285.763@198,283.900@199,281.944@200,280.133@201,278.331@202,276.962@203,275.046@204,273.176@205,271.519@206,268.449@207,266.356@208,264.402@209,263.881@210,262.238@211,261.893@212,260.280@213,259.749@214,258.121@215,256.264@216,255.547@217,253.851@218,251.906@219,250.125@220,248.361@221,247.653@222,246.292@223,245.747@224,244.195@225,242.512@226,241.970@227,240.068@228,238.251@229,237.728@230,236.086@231,235.479@232,234.084@233,233.450@234,231.931@235,230.355@236,229.784@237,228.125@238,227.362@239,225.971@240,224.781@241,223.974@242,223.673@243,222.329@244,222.107@245,221.876@246,221.600@247,220.204@248,219.903@249,219.701@250,219.299@251,218.356@252,217.883@253,217.774@254,217.556@255,216.468@256,216.201@257,215.975@258,215.910@259,215.891@260,215.875@261,215.963@262,216.911@263,217.490@264,217.527@265,218.072@266,219.002@267,219.569@268,220.563@269,221.364@270,223.015@271,223.611@272,226.029@273,228.034@274,230.520@275,232.689@276,234.680@277,236.723@278,238.588@279,240.574@280,242.602@281,244.498@282,246.540@283,248.834@284,250.766@285,252.854@286,254.721@287,256.797@288,258.969@289,261.230@290,263.279@291,266.682@292,268.878@293,271.210@294,274.872@295,277.253@296,280.826@297,283.091@298,285.243@299,288.544@300,290.937@301,293.419@302,296.879@303,299.312@304,302.759@305,305.172@306,308.609@307,311.048@308,313.318@309,316.604@310,318.883@311,320.886@312,323.130@313,324.906@314,326.830@315,328.732@316,329.408@317,331.357@318,333.121@319,335.249@320,337.093@321,339.096@322,341.184@323,343.348@324,343.263@325,345.265@326,348.145@327,350.492@328,352.096@329,354.719@330,356.105@331,360.904@332,361.862@333,363.265@334,364.893@335,365.150@336,366.431@337,366.813@338,366.945@339,367.040@340,367.224@341,367.366@342,367.928@343,368.644@344,368.779@345,369.121@346,369.398@347,370.780@348,371.210@349,371.409@350,371.398@351,371.317@352,371.177@353,370.049@354,369.500@355,369.255@356,368.924@357,367.821@358,367.145@359,365.522@360,364.400@361,362.950@362,361.232@363,359.471@364,357.494@365,355.745@366,353.880@367,352.220@368,351.010@369,349.269@370,347.496@371,345.793@372,343.898@373,342.332@374,340.551@375,339.239@376,337.882@377,336.263@378,334.912@379,333.637@380,332.372@381,331.800@382,331.149@383,330.428@384,330.075@385,329.660@386,329.562@387,329.381@388,329.333@389,329.371@390,329.552@391),
11
+ 1, 244.795, 282.795, 310.552, 348.552, 225.795, 301.795, 291.552, 367.552,
12
+ JSpline(1,252.046@5,250.754@6,247.752@7,243.935@8,242.032@9,239.585@10,237.059@11,235.100@12,232.931@13,231.012@14,230.692@15,230.706@16,231.145@17,231.292@18,231.409@19,231.404@20,231.946@21,231.504@22,231.134@23,230.606@24,229.528@25,228.471@26,227.982@27,227.174@28,226.473@29,226.720@30,226.269@31,226.080@32,226.225@33,225.446@34,224.092@35,222.160@36,222.256@37,221.916@38,222.735@39,223.170@40,223.824@41,224.168@42,224.637@43,225.032@44,226.056@45,226.795@46,227.592@47,229.035@48,230.233@49,232.002@50,233.722@51,235.744@52,237.845@53,240.018@54,242.612@55,244.328@56,246.410@57,248.199@58,250.656@59,253.280@60,255.784@61,258.784@62,261.774@63,264.552@64,267.338@65,270.646@66,274.138@67,277.417@68,280.654@69,284.281@70,287.681@71,291.349@72,294.831@73,298.385@74,301.505@75,304.946@76,307.987@77,311.292@78,314.520@79,317.985@80,321.280@81,325.268@82,328.808@83,333.028@84,336.953@85,341.322@86,345.452@87,350.052@88,354.522@89,359.429@90,364.043@91,369.147@92,373.571@93,378.491@94,382.641@95,387.290@96,391.341@97,395.712@98,399.887@99,404.242@100,408.335@101,413.106@102,417.115@103,421.383@104,425.075@105,429.053@106,432.394@107,435.627@108,438.646@109,441.807@110,444.673@111,447.699@112,450.288@113,452.886@114,455.111@115,457.166@116,458.998@117,460.488@118,462.146@119,463.163@120,464.016@121,464.732@122,465.424@123,465.896@124,466.332@125,466.541@126,466.578@127,466.582@128,466.488@129,466.141@130,465.415@131,464.934@132,463.886@133,463.182@134,462.168@135,461.159@136,460.235@137,459.203@138,458.113@139,456.502@140,455.082@141,453.505@142,451.216@143,449.041@144,446.081@145,442.945@146,440.073@147,436.802@148,433.480@149,430.350@150,427.545@151,424.927@152,422.110@153,419.189@154,416.247@155,413.113@156,410.131@157,407.743@158,405.009@159,402.432@160,400.507@161,398.573@162,396.152@163,393.970@164,391.919@165,389.529@166,386.957@167,384.249@168,381.286@169,378.041@170,375.034@171,371.787@172,368.295@173,365.026@174,361.776@175,358.266@176,354.577@177,350.860@178,347.278@179,343.676@180,340.042@181,336.450@182,332.651@183,328.582@184,324.658@185,320.713@186,317.047@187,313.155@188,309.568@189,305.986@190,302.431@191,298.953@192,295.382@193,292.115@194,288.498@195,285.216@196,281.922@197,278.576@198,275.606@199,273.248@200,270.943@201,268.740@202,266.275@203,263.707@204,261.020@205,258.529@206,256.215@207,253.927@208,251.861@209,250.165@210,248.943@211,247.830@212,247.250@213,246.721@214,246.347@215,246.079@216,245.822@217,245.904@218,245.938@219,246.141@220,246.781@221,247.718@222,248.467@223,249.645@224,250.949@225,252.737@226,254.235@227,256.275@228,258.378@229,260.185@230,262.643@231,264.858@232,267.054@233,269.186@234,271.117@235,273.383@236,275.244@237,277.626@238,279.633@239,281.889@240,284.080@241,286.168@242,288.339@243,291.296@244,294.153@245,297.313@246,300.385@247,303.853@248,307.317@249,310.896@250,314.732@251,318.720@252,322.497@253,326.129@254,330.333@255,334.269@256,338.335@257,342.484@258,346.395@259,350.129@260,353.878@261,357.813@262,361.341@263,365.241@264,368.544@265,371.859@266,375.156@267,378.883@268,382.140@269,386.098@270,389.745@271,393.366@272,397.369@273,401.085@274,405.215@275,409.110@276,412.905@277,416.812@278,420.629@279,424.228@280,427.994@281,431.763@282,435.757@283,439.421@284,442.840@285,446.029@286,449.050@287,452.000@288,454.506@289,456.743@290,458.739@291,461.021@292,462.777@293,464.514@294,466.234@295,467.925@296,469.419@297,470.465@298,471.443@299,472.428@300,472.905@301,473.389@302,473.957@303,474.245@304,474.722@305,474.924@306,474.982@307,474.941@308,474.782@309,474.607@310,474.141@311,473.801@312,473.033@313,472.459@314,471.772@315,470.935@316,470.122@317,469.302@318,468.306@319,467.164@320,465.943@321,464.337@322,462.810@323,461.262@324,458.181@325,456.182@326,453.927@327,452.110@328,449.546@329,447.664@330,444.940@331,442.990@332,440.810@333,437.933@334,435.263@335,432.767@336,429.914@337,427.106@338,424.698@339,422.530@340,419.996@341,417.711@342,415.505@343,413.106@344,410.640@345,408.593@346,406.113@347,403.161@348,400.540@349,397.650@350,394.782@351,391.751@352,388.426@353,384.880@354,380.995@355,377.299@356,372.788@357,368.423@358,364.194@359,360.038@360,356.261@361,352.337@362,348.896@363,345.413@364,341.865@365,338.124@366,334.435@367,330.727@368,327.161@369,323.983@370,320.904@371,317.655@372,314.828@373,311.845@374,308.870@375,305.964@376,303.074@377,300.126@378,297.023@379,293.978@380,290.934@381,287.928@382,285.108@383,282.619@384,279.848@385,276.753@386,273.892@387,271.071@388,268.585@389,266.035@390,263.795@391),
13
+ JSpline(1,404.323@5,404.419@6,405.934@7,408.321@8,412.151@9,416.611@10,422.813@11,429.915@12,434.304@13,438.489@14,442.765@15,447.026@16,450.065@17,452.192@18,453.738@19,455.295@20,455.823@21,455.096@22,453.763@23,451.561@24,449.504@25,446.805@26,445.405@27,443.853@28,443.728@29,442.336@30,441.436@31,440.043@32,438.453@33,438.101@34,437.506@35,435.062@36,430.586@37,429.911@38,427.305@39,425.205@40,422.693@41,420.606@42,418.838@43,416.839@44,412.308@45,410.241@46,408.010@47,404.352@48,402.410@49,398.489@50,396.362@51,394.311@52,392.401@53,390.534@54,388.466@55,386.270@56,384.042@57,382.334@58,381.458@59,380.260@60,378.154@61,376.236@62,374.406@63,373.426@64,372.152@65,370.378@66,368.568@67,366.862@68,366.617@69,364.686@70,364.477@71,363.064@72,362.816@73,362.545@74,362.617@75,360.847@76,360.758@77,360.567@78,360.402@79,358.863@80,358.708@81,356.966@82,357.002@83,356.699@84,356.381@85,355.055@86,355.078@87,354.977@88,354.575@89,353.991@90,353.811@91,353.573@92,353.187@93,353.100@94,352.989@95,352.833@96,352.386@97,351.450@98,351.105@99,350.020@100,349.072@101,347.574@102,347.060@103,345.901@104,345.120@105,344.055@106,343.431@107,342.675@108,341.955@109,341.063@110,339.567@111,338.335@112,336.435@113,334.353@114,332.278@115,329.895@116,327.957@117,325.894@118,324.083@119,322.095@120,320.268@121,318.224@122,316.191@123,313.566@124,310.500@125,307.691@126,304.532@127,301.964@128,299.195@129,296.975@130,294.681@131,292.874@132,290.659@133,289.112@134,287.600@135,286.201@136,285.286@137,284.079@138,283.166@139,282.134@140,281.883@141,281.563@142,281.267@143,281.481@144,281.551@145,281.966@146,282.140@147,283.269@148,284.430@149,285.456@150,286.708@151,288.077@152,289.565@153,291.740@154,293.638@155,296.105@156,297.775@157,299.420@158,301.262@159,302.492@160,303.467@161,304.278@162,305.175@163,305.638@164,306.087@165,306.394@166,306.965@167,307.673@168,308.173@169,309.124@170,309.909@171,311.284@172,311.850@173,312.064@174,312.535@175,312.891@176,313.049@177,313.174@178,313.013@179,312.583@180,312.267@181,311.935@182,311.607@183,311.237@184,309.839@185,308.122@186,306.720@187,305.058@188,303.553@189,301.864@190,299.815@191,297.927@192,295.943@193,294.131@194,291.946@195,290.015@196,287.891@197,285.763@198,283.900@199,281.944@200,280.133@201,278.331@202,276.962@203,275.046@204,273.176@205,271.519@206,268.449@207,266.356@208,264.402@209,263.881@210,262.238@211,261.893@212,260.280@213,259.749@214,258.121@215,256.264@216,255.547@217,253.851@218,251.906@219,250.125@220,248.361@221,247.653@222,246.292@223,245.747@224,244.195@225,242.512@226,241.970@227,240.068@228,238.251@229,237.728@230,236.086@231,235.479@232,234.084@233,233.450@234,231.931@235,230.355@236,229.784@237,228.125@238,227.362@239,225.971@240,224.781@241,223.974@242,223.673@243,222.329@244,222.107@245,221.876@246,221.600@247,220.204@248,219.903@249,219.701@250,219.299@251,218.356@252,217.883@253,217.774@254,217.556@255,216.468@256,216.201@257,215.975@258,215.910@259,215.891@260,215.875@261,215.963@262,216.911@263,217.490@264,217.527@265,218.072@266,219.002@267,219.569@268,220.563@269,221.364@270,223.015@271,223.611@272,226.029@273,228.034@274,230.520@275,232.689@276,234.680@277,236.723@278,238.588@279,240.574@280,242.602@281,244.498@282,246.540@283,248.834@284,250.766@285,252.854@286,254.721@287,256.797@288,258.969@289,261.230@290,263.279@291,266.682@292,268.878@293,271.210@294,274.872@295,277.253@296,280.826@297,283.091@298,285.243@299,288.544@300,290.937@301,293.419@302,296.879@303,299.312@304,302.759@305,305.172@306,308.609@307,311.048@308,313.318@309,316.604@310,318.883@311,320.886@312,323.130@313,324.906@314,326.830@315,328.732@316,329.408@317,331.357@318,333.121@319,335.249@320,337.093@321,339.096@322,341.184@323,343.348@324,343.263@325,345.265@326,348.145@327,350.492@328,352.096@329,354.719@330,356.105@331,360.904@332,361.862@333,363.265@334,364.893@335,365.150@336,366.431@337,366.813@338,366.945@339,367.040@340,367.224@341,367.366@342,367.928@343,368.644@344,368.779@345,369.121@346,369.398@347,370.780@348,371.210@349,371.409@350,371.398@351,371.317@352,371.177@353,370.049@354,369.500@355,369.255@356,368.924@357,367.821@358,367.145@359,365.522@360,364.400@361,362.950@362,361.232@363,359.471@364,357.494@365,355.745@366,353.880@367,352.220@368,351.010@369,349.269@370,347.496@371,345.793@372,343.898@373,342.332@374,340.551@375,339.239@376,337.882@377,336.263@378,334.912@379,333.637@380,332.372@381,331.800@382,331.149@383,330.428@384,330.075@385,329.660@386,329.562@387,329.381@388,329.333@389,329.371@390,329.552@391),
14
+ 1, 1
15
+ );
@@ -88,4 +88,11 @@ class ShakeScriptImportTest < Test::Unit::TestCase
88
88
  assert_equal 3, trackers.length
89
89
  assert_equal 160, trackers[0].length
90
90
  end
91
+
92
+ def test_boujou_exported_script
93
+ fixture = File.open(File.dirname(__FILE__) + "/samples/shake_script_from_boujou.shk")
94
+ trackers = Tracksperanto::Import::ShakeScript.new.parse(fixture)
95
+ assert_equal 1, trackers.length
96
+ assert_equal 387, trackers[0].length
97
+ end
91
98
  end
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.6.2
4
+ version: 1.6.3
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-11-23 00:00:00 +01:00
12
+ date: 2009-11-25 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -138,6 +138,7 @@ files:
138
138
  - test/import/samples/one_shake_tracker_from_first.txt
139
139
  - test/import/samples/one_tracker_with_break.nk
140
140
  - test/import/samples/one_tracker_with_break_in_grp.nk
141
+ - test/import/samples/shake_script_from_boujou.shk
141
142
  - test/import/samples/shake_tracker_nodes.shk
142
143
  - test/import/samples/shake_tracker_nodes_to_syntheyes.txt
143
144
  - test/import/samples/shake_tracker_with_no_anim.shk