From eb7c99a77186d2ce6c91133dcde7c66cb44a24cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20V=C3=A1ssquez=20P=C3=A9rez?= Date: Fri, 24 Feb 2017 18:29:58 -0800 Subject: [PATCH] Script to customize pieces for the disney 2017 gfx package --- jsx/MKN_DC_Customizer.jsx | 1 + 1 file changed, 1 insertion(+) create mode 100644 jsx/MKN_DC_Customizer.jsx diff --git a/jsx/MKN_DC_Customizer.jsx b/jsx/MKN_DC_Customizer.jsx new file mode 100644 index 0000000..7b1f567 --- /dev/null +++ b/jsx/MKN_DC_Customizer.jsx @@ -0,0 +1 @@ +{ ///////////////////////////////////////////////////////////////////////// // // MAkinE Disney Customizer // // ©2017 Jorge Vasquez // Author: Jorge Vasquez // // Version History // //////////////////////////////////////////////////////////////////////// var tcd_scriptName = "MAkinE - Disney Customizer "; var tcd_version = "0.1"; function tcd_buildUI(thisObj) { if (thisObj instanceof Panel) { var myPal = thisObj; } else { var myPal = new Window("palette",tcd_scriptName + " v" + tcd_version,undefined, {resizeable:true}); } if (myPal != null) { var res = "group { \ alignment: ['fill','fill'], \ alignChildren: ['left','top'], \ orientation: 'column', \ match: Group { \ alignment: ['fill','top'], \ alignChildren: ['fill','top'], \ orientation:'column', \ suffix: Group { \ alignment: ['fill','top'], \ alignChildren: ['fill','top'], \ paletteText: StaticText {text:'Piece Palette', alignment: ['left','center']}, \ paletteOption: DropDownList {alignment: ['left','center']}, \ suffixTxt: StaticText {text:'Show Title', alignment: ['left','center']}, \ suffixString: EditText {text: 'Show Title', alignment: ['fill','center']}, \ } \ } \ doItBtn: Button {text: 'Customize', alignment: ['right','top']} , \ }"; myPal.grp = myPal.add(res); var paletteOptions = ["Palette 01","Palette 02","Palette 03","Palette 04"]; for (var i=0; i= 1300 ) { ctrl_layer("Effects")("long_name")("Checkbox").setValue(1); } else { ctrl_layer("Effects")("long_name")("Checkbox").setValue(0); } ctrl_layer("Effects")("width")("Slider").setValue(width + 75); } //function tcd_doIt (palObj) var tcd_mode = 0; // 0 - none, 1 - add suffix, 2 - search and replace var tcd_suffix = ""; var tcd_searchTerm = ""; var tcd_replaceTerm = ""; //main var myPalette = tcd_buildUI(this); var tcd_folderName, tcd_addFolder, tcd_origParentFolder, tcd_parentFolder, previousComps, previousFolders; if (parseFloat(app.version) < 8) { alert("This script requires Adobe After Effects CS3 or later.", tcd_scriptName); } else { if (myPalette != null && myPalette instanceof Window) { //myPalette.center(); myPalette.show(); } } } \ No newline at end of file