Advertisement
Guest User

createDrawing

a guest
Dec 14th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function exeDialog(uiPath)
  2. {
  3. this.createDrawingNode = function()
  4. {
  5.  if(selection.numberOfNodesSelected() == 1)
  6.   {
  7.     selectionNode = selection.selectedNode(0);
  8.     createdDrawing = node.add(node.parentNode(selectionNode), "Drawing", "READ", node.coordX(selectionNode),      node.coordY(selectionNode),0);
  9. }
  10.   this.ui = UiLoader.load(uiPath)
  11.   this.ui.createDrawing.pushButton.connect(this, this.createDrawingNode);
  12. }
  13. }
  14.  
  15. function createDrawing()
  16. {
  17.   localPath = "D:/Projects/Plugins/ScriptingFiles/Scripting1/scripts"
  18.   System.println(localPath)
  19.   localPath += "/createdrawing.ui"
  20.   MessageLog.trace(localPath)
  21.   this.ui = UiLoader.load(localPath)
  22.   ui.show();
  23.   var f = new exeDialog(localPath);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement