-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (38 loc) · 2.19 KB
/
Copy pathindex.html
File metadata and controls
43 lines (38 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<html>
<head>
<!-- for testing shared files locally, use: ../../FormItExamplePlugins/SharedPluginFiles -->
<script type="text/javascript" src="https://formit3d.github.io/FormItExamplePlugins/SharedPluginFiles/FormIt.js"></script>
<link rel="stylesheet" type="text/css" href="https://formit3d.github.io/FormItExamplePlugins/SharedPluginFiles/FormItPluginStyling.css">
<title>Properties Plus</title>
<META NAME="Title" CONTENT="Properties Plus">
<META NAME="Author" CONTENT="Autodesk FormIt">
<script type="text/javascript" src="https://formit3d.github.io/FormItExamplePlugins/SharedPluginFiles/FormItInterface.js"></script>
<script type="text/javascript" src="https://formit3d.github.io/FormItExamplePlugins/SharedPluginFiles/PluginUtils18_0.js"></script>
<script type="text/javascript" src="https://formit3d.github.io/FormItExamplePlugins/SharedPluginFiles/FormItPluginUI.js"></script>
<script type="text/javascript" src="https://formit3d.github.io/FormItWorkflowPlugins/Utils.js"></script>
<script type="text/javascript" src="PropertiesPlus_Web.js"></script>
<script type="text/javascript">
FormItInterface.Initialize(function () {
FormItInterface.SubscribeMessage("FormIt.Message.kSelectionsChanged", function(msg)
{
var jsonMessage = JSON.parse(msg);
// This callback will be invoked whenever the signal is emitted on the C++/QML side.
//FormItInterface.ConsoleLog("(Web Side) Message: " + JSON.stringify(jsonMessage));
// only perform the calculations and update the UI if the user has checked the box
if (PropertiesPlus.doRecomputeOnSelection())
{
// when the FormIt selection changes, automatically update the plugin UI
PropertiesPlus.updateUI();
}
});
// initialize the UI
// this must be called from here, to ensure the HTML page is loaded
// before scripts try to access the window document
PropertiesPlus.initializeUI();
PropertiesPlus.updateUI();
}); // DOMContentLoaded
</script>
</head>
<body>
</body>
</html>