Normand Briere
2019-09-24 767be784dc7fe293bf5c5ee6507df242526be3ed
ScriptNode.java
....@@ -388,7 +388,7 @@
388388 {
389389 System.err.println("LoadBVHFile = " + obj + "; name = " + iname + "; first frame = " + firstframe + "; last frame = " + lastframe);
390390 obj.blockloop = false; // to force crash right now
391
- GetRoot().editWindow.LoadBVHFile(iname, obj, false, force?firstframe:-1, lastframe);
391
+ GetRoot().GetWindow().LoadBVHFile(iname, obj, false, force?firstframe:-1, lastframe);
392392 }
393393 else
394394 {
....@@ -522,7 +522,7 @@
522522 if (command.equals("recompile"))
523523 {
524524 // TODO assert (GetRoot() == Globals.theRenderer.object);
525
- GetRoot().editWindow.Recompile();
525
+ GetRoot().GetWindow().Recompile();
526526 return;
527527 }
528528 if (command.equals("resetframecount"))
....@@ -533,7 +533,7 @@
533533 if (command.equals("deselect") || command.equals("unselect"))
534534 {
535535 // TODO assert (GetRoot() == Globals.theRenderer.object);
536
- GetRoot().editWindow.jTree.clearSelection();
536
+ GetRoot().GetWindow().jTree.clearSelection();
537537 return;
538538 }
539539 if (command.equals("stoplive") || command.equals("liveoff"))
....@@ -771,7 +771,7 @@
771771 if (!CameraPane.BOXMODE)
772772 {
773773 Globals.theRenderer.ToggleBoxMode();
774
- GetRoot().editWindow.Recompile();
774
+ GetRoot().GetWindow().Recompile();
775775 }
776776 return;
777777 }
....@@ -780,7 +780,7 @@
780780 if (CameraPane.BOXMODE)
781781 {
782782 Globals.theRenderer.ToggleBoxMode();
783
- GetRoot().editWindow.Recompile();
783
+ GetRoot().GetWindow().Recompile();
784784 }
785785 return;
786786 }
....@@ -1155,7 +1155,7 @@
11551155 boolean success = false;
11561156
11571157 if (cam instanceof Camera) // ?
1158
- success = Globals.theRenderer.SetCamera((Camera) cam);
1158
+ success = Globals.theRenderer.SetCamera((Camera) cam, true);
11591159
11601160 if (success)
11611161 {
....@@ -1172,7 +1172,7 @@
11721172 Object3D root = GetObject(rootobject);
11731173
11741174 System.err.println("ZOOM: root = " + root + "; rootobject = " + rootobject);
1175
- GetRoot().editWindow.objEditor.ScreenFit(root, false);
1175
+ GetRoot().GetWindow().objEditor.ScreenFit(root, false);
11761176 CameraPane.trackedobject = root;
11771177 CameraPane.ABORTED = true;
11781178 System.err.println("SET ABORTED (SPEAKERFOCUS) ");
....@@ -1182,14 +1182,14 @@
11821182 if (CameraPane.SPEAKERMOCAP)
11831183 {
11841184 // switch to talk mocap
1185
- String talkmocap = //aliases.get(
1186
- speakername + "talk"//)
1185
+ String talkmocap = aliases.get(
1186
+ speakername + "talk")
11871187 ;
11881188 // while (aliases.get(talkmocap) != null)
11891189 // talkmocap = aliases.get(talkmocap);
11901190
1191
- String speakermocap = //aliases.get(
1192
- speakername + "mocap"//)
1191
+ String speakermocap = aliases.get(
1192
+ speakername + "mocap")
11931193 ;
11941194
11951195 String beginmocap = speakername + "talkbegin";
....@@ -1235,8 +1235,8 @@
12351235 }
12361236 if (command.equals("setsupport"))
12371237 {
1238
- boolean random = CameraPane.RANDOM;
1239
- CameraPane.RANDOM = false; // parse all random nodes
1238
+ boolean random = CameraPane.SWITCH;
1239
+ CameraPane.SWITCH = false; // parse all random nodes
12401240 if (object.support instanceof Merge)
12411241 {
12421242 ((Merge)object.support).renderme();
....@@ -1245,7 +1245,7 @@
12451245 object.linkVerticesThis(null);
12461246 object.linkVerticesThis(GetObject(GetAlias(strs[index+2])));
12471247 // object.setMasterThis(content); // should be identity
1248
- CameraPane.RANDOM = random;
1248
+ CameraPane.SWITCH = random;
12491249 return;
12501250 }
12511251 if (command.equals("setchild"))
....@@ -1464,7 +1464,7 @@
14641464 {
14651465 // TODO assert (GetRoot() == Globals.theRenderer.object);
14661466 String path = GetAlias(strs[index+1]);
1467
- GetRoot().editWindow.Select(GetRoot().GetTreePath(path.split("/"), 0), false, false);
1467
+ GetRoot().GetWindow().Select(GetRoot().GetTreePath(path.split("/"), 0), false, false);
14681468 return;
14691469 }
14701470 if (command.equals("mocap"))
....@@ -1558,7 +1558,7 @@
15581558 boolean success = false;
15591559
15601560 if (object instanceof Camera) // ?
1561
- success = Globals.theRenderer.SetCamera((Camera) object);
1561
+ success = Globals.theRenderer.SetCamera((Camera) object, true);
15621562
15631563 if (success && CameraPane.ABORTMODE)
15641564 {
....@@ -1821,9 +1821,9 @@
18211821 return e;
18221822 }
18231823
1824
- protected void deepCopySelf(Object3D other)
1824
+ protected void deepCopyNode(Object3D other)
18251825 {
1826
- super.deepCopySelf(other);
1826
+ super.deepCopyNode(other);
18271827 // FrameSelector bp = (FrameSelector)other;
18281828 // bp.frame = (int)(Math.random()*(getNumFrames() - mocap.offset));
18291829 }