diff --git a/Gui/opensim/scriptingShell/src/org/opensim/console/gui.java b/Gui/opensim/scriptingShell/src/org/opensim/console/gui.java index 2f651eb6c..8031310a9 100644 --- a/Gui/opensim/scriptingShell/src/org/opensim/console/gui.java +++ b/Gui/opensim/scriptingShell/src/org/opensim/console/gui.java @@ -482,4 +482,9 @@ static public void setVisualizerOption(String key, String value){ msg.put("data", option); sendVisulaizerMessage(msg); } + static public void getCameraInfo() { + JSONObject msg = new JSONObject(); + msg.put("Op", "getCameraParams"); + sendVisulaizerMessage(msg); + } } diff --git a/Gui/opensim/view/src/org/opensim/view/pub/ViewDB.java b/Gui/opensim/view/src/org/opensim/view/pub/ViewDB.java index 4fc189661..f1a976d66 100644 --- a/Gui/opensim/view/src/org/opensim/view/pub/ViewDB.java +++ b/Gui/opensim/view/src/org/opensim/view/pub/ViewDB.java @@ -1367,6 +1367,7 @@ private void handleJson(JSONObject jsonObject) { double rendertimeAverage = ((Double) jsonObject.get("totalTime")) / ((Long) jsonObject.get("numFrames")); OpenSimLogger.logMessage(msg + "FPS: " + (int) 1000 / rendertimeAverage + "\n", OpenSimLogger.INFO); } + OpenSimLogger.logMessage(jsonObject.toString(), OpenSimLogger.INFO); return; } if (msgType.equalsIgnoreCase("transforms")) {