Python – How to make a popup window in python

The following code makes a nice little popup in python Credit:,inform%20the%20user%20that%20the%20program%20completed%20successfully. from tkinter import * def alert_popup(title, message, path): """Generate a pop-up window for special messages.""" root = Tk() root.title(title) w = 400 # popup window width h = 200 # popup window height sw = root.winfo_screenwidth() sh = root.winfo_screenheight() x = (sw - … Continue reading Python – How to make a popup window in python

ExtendScript – BridgeTalk: Control Illustrator From After Effects with ExtendScript

How to run a script from After Effects that launches AI // and more here: // // video tutorial here: // if(BridgeTalk.isRunning("illustrator") == false){//if illustrator isn't open, open it.     var beingLaunched = BridgeTalk.launch ("illustrator", "background")     // alert(beingLaunched) } //=========================================================================== //Illustrator business function run (myCommand) {     bt.body = … Continue reading ExtendScript – BridgeTalk: Control Illustrator From After Effects with ExtendScript

ExtendScript – Illustrator: How to Zip Folder

How to zip a folder in illustrator. This takes the help of an apple script. //Part 1: Extendscript looks like this //1. Get terminal command in form of string  var zipTerminalCommand = terminalCmdToZip(); //2. export terminal command string to a text doc sendToClipboardDoc(zipTerminalCommand) //3. Run apple script app to use terminal command //Change the "YourUserName" part myAppleScriptPath = "/Users/YourUserName/Desktop/" runAppleScript(myAppleScriptPath) //========================================= // FUNCITONS FOR … Continue reading ExtendScript – Illustrator: How to Zip Folder

ExtendScript – Illustrator: Make new document

How to make a new document in illustrator with extendscript alert("making new artboard!") var width = 100 var height = 500 var newDoc = app.documents.add(DocumentColorSpace.RGB, width, height, 1); // source: // Tags: Scripts, adobe illustrator scripting,

ExtendScript – Illustrator : Change artboard size

How to change artboard size with ExtendScript in Illustrator //change artboard size. changeCurrentArtboardSize([640,480]) function changeCurrentArtboardSize(size){     alert("changing artboard size");     activeDocument.artboards.setActiveArtboardIndex(2);//change which artboard you want to crop     var newWidth = new UnitValue (size[0], "px");     var newHeight = new UnitValue (size[1], "px");     newWidth ="px");     newHeight ="px");//as px not needed but i'll keep it in case i want to reference later.     activeDocument.artboards[0].artboardRect = [0,0,newWidth,newHeight]; }// //end function Tags: Adobe illustrator scripting