Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

a button that will start a script.

$
0
0

i have a dockable script (that goes to the scriptUi panels folder..)

and i want that when someone press the button - (var jaxiterButton)(line 44)

 

it will open a script in a deticated folder.

i have no idea how am i suppose to do this.

 

the function is at line - 47 and the button is 44

this is the script -

 

(function(thisObj) {     var scriptPalette = scriptBuildUI(thisObj);     if (scriptPalette !== null && scriptPalette instanceof Window) {         scriptPalette.center();         scriptPalette.show();     } else {         scriptPalette.layout.layout(true);     }      function scriptBuildUI(thisObj) {         //UI Creation            var myWindow = (thisObj instanceof Panel) ? thisObj : new Window("palette", prefs.script.name, undefined, {             resizeable: true         }); 



//FILES/////////////////////////////////////
var scriptFolderPath = File($.fileName).path; // the URI of the folder that contains the script file 
var PtvsFolderPath = scriptFolderPath + encodeURI("/ptvs_sources"); // the URI of the folder for your script resources 

var JFile = new File(PtvsFolderPath + encodeURI("/ButtonImages/J.png"));






var JscriptFile = new File(PtvsFolderPath + encodeURI("/Scripts/JaxiterScript/Jaxiter.jsx"));




//END FILES////////////////////////////////






var buttons = myWindow.add("group", undefined, "button group");


var jaxiterButton = buttons.add("iconbutton", undefined, JFile, "IconButton");


jaxiterButton.onClick = function(){        }                         return myWindow;      } //UI Creation End.//    
})(this);

Viewing all articles
Browse latest Browse all 2143

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>