.. | .. |
---|
285 | 285 | else |
---|
286 | 286 | { |
---|
287 | 287 | 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); |
---|
289 | 289 | else |
---|
290 | 290 | System.err.println("no speaker (not a command) : " + reader.line); |
---|
291 | 291 | } |
---|
.. | .. |
---|
412 | 412 | { |
---|
413 | 413 | //path += "/" + Filename(readers[i].script); |
---|
414 | 414 | 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 + |
---|
416 | 416 | "; line#" + reader.linecount + ": " + reader.line; |
---|
417 | 417 | if (reader.line != null && // sept 2014 |
---|
418 | 418 | reader.line.startsWith("_")) |
---|
.. | .. |
---|
488 | 488 | reader = readers[stack] = new ScriptReader(new BufferedReader(new FileReader(script)), reader.totalduration, /*0, 0, "",*/ script); |
---|
489 | 489 | //duration = 0; // june 2014 |
---|
490 | 490 | //linecount = 0; |
---|
491 | | - //reader.script = script; |
---|
| 491 | + reader.script = script; // oct 2014 |
---|
492 | 492 | return; |
---|
493 | 493 | } |
---|
494 | 494 | if (command.equals("return")) // line.startsWith("; return")) |
---|
.. | .. |
---|
997 | 997 | if (command.equals("fromto")) |
---|
998 | 998 | { |
---|
999 | 999 | 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])); |
---|
1002 | 1002 | |
---|
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])); |
---|
1006 | 1006 | |
---|
1007 | 1007 | ((Mocap) object).AddFromTo(from, to); |
---|
1008 | 1008 | return; |
---|
.. | .. |
---|
1301 | 1301 | { |
---|
1302 | 1302 | Mocap mocap = (Mocap) object; |
---|
1303 | 1303 | |
---|
1304 | | - mocap.SetPositionDelta(false, true, false, true); |
---|
| 1304 | + //mocap.SetPositionDelta(false, true, false, true); |
---|
| 1305 | + mocap.Rewind(); |
---|
| 1306 | + mocap.Fade(); |
---|
1305 | 1307 | } |
---|
1306 | 1308 | else |
---|
1307 | 1309 | new Exception().printStackTrace(); |
---|
.. | .. |
---|
1438 | 1440 | object.skip = false; |
---|
1439 | 1441 | return; |
---|
1440 | 1442 | } |
---|
1441 | | - if (command.equals("skipmocap")) |
---|
| 1443 | + if (command.equals("skipmocap") || command.equals("mocapskip")) // oct 2014 |
---|
1442 | 1444 | { |
---|
1443 | 1445 | object.skipmocap = true; |
---|
1444 | 1446 | return; |
---|