Normand Briere
2018-07-03 02e145cb923d601395acc7f15ae9e13f85ef2fbb
ScriptNode.java
....@@ -285,7 +285,7 @@
285285 else
286286 {
287287 if (speaker != null)
288
- System.err.println(speaker.GetFileRoot().name + " (not a command) : " + reader.line);
288
+ System.err.println(speaker.GetFileRoot().name + " (speaking) : " + reader.line);
289289 else
290290 System.err.println("no speaker (not a command) : " + reader.line);
291291 }
....@@ -412,7 +412,7 @@
412412 {
413413 //path += "/" + Filename(readers[i].script);
414414 ScriptReader reader = readers[i];
415
- path += Filename(readers[i].script) + "; duration=" + reader.duration + "; total=" + reader.totalduration +
415
+ path += Filename(reader.script) + "; duration=" + reader.duration + "; total=" + reader.totalduration +
416416 "; line#" + reader.linecount + ": " + reader.line;
417417 if (reader.line != null && // sept 2014
418418 reader.line.startsWith("_"))
....@@ -488,7 +488,7 @@
488488 reader = readers[stack] = new ScriptReader(new BufferedReader(new FileReader(script)), reader.totalduration, /*0, 0, "",*/ script);
489489 //duration = 0; // june 2014
490490 //linecount = 0;
491
- //reader.script = script;
491
+ reader.script = script; // oct 2014
492492 return;
493493 }
494494 if (command.equals("return")) // line.startsWith("; return"))
....@@ -997,12 +997,12 @@
997997 if (command.equals("fromto"))
998998 {
999999 cVector from = new cVector(Float.parseFloat(strs[index+2]),
1000
- Float.parseFloat(strs[index+3]),
1001
- Float.parseFloat(strs[index+4]));
1000
+ 0, // Float.parseFloat(strs[index+3]),
1001
+ Float.parseFloat(strs[index+3]));
10021002
1003
- cVector to = new cVector(Float.parseFloat(strs[index+5]),
1004
- Float.parseFloat(strs[index+6]),
1005
- Float.parseFloat(strs[index+7]));
1003
+ cVector to = new cVector(Float.parseFloat(strs[index+4]),
1004
+ 0, // Float.parseFloat(strs[index+6]),
1005
+ Float.parseFloat(strs[index+5]));
10061006
10071007 ((Mocap) object).AddFromTo(from, to);
10081008 return;
....@@ -1301,7 +1301,9 @@
13011301 {
13021302 Mocap mocap = (Mocap) object;
13031303
1304
- mocap.SetPositionDelta(false, true, false, true);
1304
+ //mocap.SetPositionDelta(false, true, false, true);
1305
+ mocap.Rewind();
1306
+ mocap.Fade();
13051307 }
13061308 else
13071309 new Exception().printStackTrace();
....@@ -1438,7 +1440,7 @@
14381440 object.skip = false;
14391441 return;
14401442 }
1441
- if (command.equals("skipmocap"))
1443
+ if (command.equals("skipmocap") || command.equals("mocapskip")) // oct 2014
14421444 {
14431445 object.skipmocap = true;
14441446 return;