Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function exeDialog(uiPath)
- {
- this.createDrawingNode = function()
- {
- if(selection.numberOfNodesSelected() == 1)
- {
- selectionNode = selection.selectedNode(0);
- createdDrawing = node.add(node.parentNode(selectionNode), "Drawing", "READ", node.coordX(selectionNode), node.coordY(selectionNode),0);
- }
- this.ui = UiLoader.load(uiPath)
- this.ui.createDrawing.pushButton.connect(this, this.createDrawingNode);
- }
- }
- function createDrawing()
- {
- localPath = "D:/Projects/Plugins/ScriptingFiles/Scripting1/scripts"
- System.println(localPath)
- localPath += "/createdrawing.ui"
- MessageLog.trace(localPath)
- this.ui = UiLoader.load(localPath)
- ui.show();
- var f = new exeDialog(localPath);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement