Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [script]

Small programs automating certain tasks. For questions about script typefaces, use the script-typeface tag.

0
votes
1answer
34 views

Weird Script UI bug

I'm working on a script with a dialog box in photoshop. The goal is to get an End Date and Time for multiple banners. My Cancel button works fine, but my Ok button produces a weird bug. The window ...
0
votes
0answers
12 views

find all embedded text frames inside a story and replace them with their formatted text content

I have a catalog with almost 1,000 pages, build with a story that contains text frames. Now, for a following project, i need to delete all those embedded text frames without losing their text content. ...
0
votes
0answers
24 views

Is it possible to get an illustrator script to replace colours with numbers? [closed]

I have a grid and different colours and want to add a number into each cell I have 24 colours: White Yellow Light Green Medium Green Green Dark Green Orange Dark Orange Red Dark Red Brown ...
1
vote
1answer
28 views

Plotting points from external file in GIMP

I've got to believe someone has written a SCRIPT-FU scriptor or simple plug-in that reads a file of (x,y) points (in GIMP's coordinate system) and plots small circles of specified color and diameter ...
0
votes
0answers
16 views

Get the layers which my cursor in covering

I got to know that we can write code for texts in after effects. Like I want the code to return this array "[0 1 2]" at time "0:00:00:00" using this I'll change the text to '1' & "[0 1 3]" when ...
0
votes
1answer
54 views

Scripting 1-line vs 2-line text boxes

I will try to ask this question as best I can, but the problem is a challenging one. I have a text box that one part of my script will change the text in. I want to code a boolean variable to check ...
0
votes
1answer
43 views

In script, get paragraph preceding current selection

I've made a script that goes trough all tracked changes: var allChanges =app.activeDocument.stories.everyItem().changes.everyItem().getElements(); var nChanges = allChanges.length; for (var i = ...
0
votes
0answers
31 views

dot in filename stops script

So i have this line of code in a script that prints pdf-s in illustrator: printJobOptions.name=namePrefix.text+ "--XS" + nameSuffix.text; Now, sometimes the namePrefix.text variable, which the user ...
0
votes
0answers
46 views

Change file name when printing to .pdf with script

Is it possible to change the pdf name when the file is being printed in Adobe PDF printer with a script? Printjoboptions gives options file and name, but with file I just get a corrupt file that has ...
2
votes
1answer
59 views

Script to Change Table Style - InDesign CC

I have an InDesign CC 2018 document which I imported a docx file. The file contains a lot of tables. I want to apply a table style to all of the tables, but we are talking hundreds of tables. Is ...
1
vote
0answers
49 views

Calling a (simple) photoshop script rapidly (many times per second)

This is the script, it's actually just one command: app.foregroundColor.hsb.hue=app.foregroundColor.hsb.hue+10 The script is merely a replacement for a non-existent keyboard shortcut. I'm calling it ...
1
vote
1answer
82 views

Scripting Artboard Export with specific bit depths

I'm working on setting up a reusable template for some PNG avatars. Unfortunately, the different avatars have specific export requirements. Currently I'm using Save for Web to achieve these specific ...
1
vote
1answer
47 views

Is there a way to save the current GIMP edit history as a script?

Is there a way to export the edit history so I can use it in a script-fu?
0
votes
0answers
27 views

Is there any script for moving each object to a separate layer in inDesign CC? [duplicate]

Can anyone help me with a script that creates a different layer for each object in a page?
0
votes
1answer
130 views

How to import data and create a symbol using scripting with Illustrator?

I would like to automate a series of actions in Illustrator, creating a complex symbol from vector images imported, or from simple symbols. The actions are: Importing files or choosing symbols from ...
3
votes
4answers
421 views

Generate palette from image

I want to automatically generate a palette from an image. Something like this, where the output is an image a single pixel tall, and 256 pixels wide, from all the colors of an input image. I've ...
0
votes
1answer
85 views

Script for random movement (scatter)

I have found (and use) scripts for random opacity, random resize, random rotation etc. but I can't seem to find one which will do a "random displacement/move" With the other above mentioned scripts, ...
0
votes
0answers
52 views

Creating unique watermarks

I'm experimenting with creating unique watermarks for a large set of images. Each image will have the same watermark but with tiny variations. I'm new to Photoshop scripting and would like to know ...
0
votes
0answers
14 views

How to set the opacity of every text layers to 0 with time vary stop watch activated with a script?

I'm doing an amateur Adobe After Effects project and I wanted to learn how to script. Basically I want to set the opacity of every text layers to 0 with time vary stop watch activated. I'm sure the ...
0
votes
2answers
84 views

Saving smallest JPG possible with Photoshop

I wanted to know what the best way to save a JPG to be very small and still keep its quality as much as possible. I have 1200x1200 psd files that when I save them while keeping quality the jpg is ...
1
vote
0answers
89 views

Artboard renaming issue

I'm working on a script for my team that will allow them to batch rename artboards in Photoshop. We use the following naming convention for our artboards: "ProjectTitle_BannerType_WidthxHeight_LG" ...
1
vote
1answer
330 views

How to create a script in GIMP?

I'm using GIMP to do a simple but tedious operation for many images so I'd like to know how I can make a script that will do it for me, or find some simpler way of doing this. I import an image file ...
0
votes
1answer
94 views

Way to quickly select random objects with variations in foreground/background [duplicate]

So, I'm Trying to find a way to select areas of images that have similar levels of contrast, but with variations of color. Is there a way through scripting or otherwise in Photoshop to select ...
0
votes
1answer
385 views

Replace smart object content without Photoshop

I am looking for a way to bulk replace smart object content without using Photoshop. My goal is to create nice poster mockups for hundreds of posters automatically. So I have a PSD file containing ...
1
vote
1answer
49 views

Indesign Script - output xml content as textframes [closed]

Is there a way of looping through xml tags and output each tag onto a new page of an indesign document Here is what i have so far but i think i am way off: var myDocument = app.activeDocument; var ...
0
votes
0answers
52 views

Script to create a pre-comp inside my main comp in After Effects

I am a new to After Effects scripting. I am looking for a way to make a pre-comp inside my main comp and have the pre-comp contain a shape. I'm looking to do it automatically by script.
-2
votes
1answer
63 views

How to fill a shape with different elements of varying sizes

I'm looking to replicate this effect without having to putting each icon in by hand manually. Is there a program or script that could help me achieve this? I tried it with some mosaic apps but it ...
0
votes
1answer
369 views

Illustrator script to convert multiple files into outlines with a pdf preset

Can someone help with an illustrator script that can convert text from multiple files in a folder to outlines and save it to pdf with a specific preset of my choice? Was able to find from my research ...
1
vote
1answer
123 views

How can I mimic a used magazine cover (crease, earmark, cracks) with Gimp? [closed]

I have made a fan magazine cover with Gimp (Sunken novels): I would like to imitate creases, cracks, earmarks, tears (maybe even coffee mug marks) to give it a used, worn-out look. Something like: I ...
2
votes
1answer
257 views

How to reset Vertical/Horizontal Scale of Smart Object to 100 percent by script

I want to write a script to reset Vertical/Horizontal Scale of a Smart Object. I tried using ArtLayer and many properties of it, but it's not success. Example: W:100% - H:75% app.activeDocument....
3
votes
1answer
618 views

Duplicate artboard with script Illustrator CC

I tried to create an action to automate "duplicate artboard" in Illustrator CC but it was not possible. I would like to know if there is any script to do this. Thanks
0
votes
0answers
80 views

Edit IPTC metada in illustrator extendscript

I'm batch editing all jpeg files metadata. I achieve to edit XMP title,description, keyword of jpeg files. But I want to edit IPTC data of these jpeg files too. Because shutterstock reads metadata ...
0
votes
1answer
362 views

Mass export all images as individual JPEGs in InDesign, but not use image frame ratio

I would like to mass export all linked images in a Indesign document using this script, its from this thread var myDoc = app.activeDocument, apis = myDoc.allPageItems, pageItem, fileName; while ( ...
1
vote
0answers
119 views

Batch export OBJ files from Photoshop keeping the PSD filename

I have an action that takes a psd with a 3d layer that: Resets the rotation of the Object Moves it to the Ground Plane Unifies it Exports to an obj file (here lies the problem) Closes the document ...
-1
votes
2answers
324 views

Is there a way to make the background of an image transparent?

Like explained here: Making the background of an image transparent in Gimp But via CLI! I'm using Gimp on Ubuntu, and I would like to do this on a bunch of images.. Even if it doesn't do a perfect ...
1
vote
1answer
303 views

Filter, Script or Effect for smudge design

Is there a filter, script or effect to create a smudge design like this: Would this be possible to create this effect programmatically or is this not in the scope of Illustrator/Photoshop? How would ...
3
votes
1answer
423 views

How to script resize export and specific folder output?

I maintain my uncle's photography website and that work currently at least consists of resizing new photos to different sizes (full, retina-thumbnail, regular thumbnail) and putting them on the site (...
1
vote
0answers
398 views

Get all text in layer by script in CS6

I'm using photoshop to support my job so I want to know how to get all text in layer and save it into a text file? I was using this script I found in github to get coordinates and layer: // Enables ...
3
votes
1answer
464 views

GIMP: A code to edit a whole folder of images

[GIMP 2.8.16] EDITED: See below. Hi, I am new to python, and I need to ask the community to please help me find where is this code failing. I am having trouble. This is version 1.0, following this ...
1
vote
2answers
3k views

Replacing a smart object in bulk with Photoshop's variable data or scripts

Is there a way to automate the replacement of a Smart Image with a different graphic? For example, if I have a master image of a mug, and a large number of flat rectangular images/designs I'd like on ...
1
vote
4answers
524 views

How to rotate all items as a group? (In a script, Illustrator)

I have an SVG with a few curved paths. I'd like to create n versions of this, by rotating them around as a group (360 / n degrees apart), around the center of the square-shaped canvas they're in, like ...
4
votes
3answers
428 views

Subtract paths, automated (using a script)

I have 100+ SVG files, each containing a few closed paths (with Bezier curves), like this: I'd like to do the following: select the first (bottom) path duplicate it move the duplicate by an (x, y) ...
3
votes
1answer
187 views

How can I quickly turn all objects of a layer to independent layers in Inkscape?

I have a single layer with many objects on it. I would like to get each one of them in a separate layer (in order to run a Processing sketch on them afterwords), how can I achieve it? From this ...
5
votes
1answer
608 views

After Effects Scripting : fontSize adjusted to boxTextSize Script Optimization

I need Help Improving and optimizing a Script. I'm fairly new to java and scripting in general and I've been Trying to do a script that would increase the font Size of a text until it fully fills it'...
1
vote
1answer
46 views

PDF Form Calulations

I have a PDF form with calculations that I just created and I intend on using it as an order form. I created it in Excel then brought it into Acrobat Pro DC (Mac OS) to create the form. Its just a ...
1
vote
2answers
373 views

Illustrator: Centering two groups according to an object in one of the groups

I think that the easiest way for me to ask this question is by illustrating it. So, as a simplified example, say I wanted to create a watch vector: I have created the hands (which is a group of thee ...
0
votes
1answer
293 views

Create multiple instances of an image with text from csv file

I am looking for a way to create a personalized birthday card. I have already created the image and would like to add the names of the recipients from an XLS or CSV file. I want to create about 300 ...
0
votes
2answers
412 views

Adobe Illustrator: Export PDF (custom preset) + Export JPG (RGB) 300dpi quality 10

I work a lot of graphics daily and at the end of the work i always save in two different formats: PDF Print Ready & JPG (RGB) 300dpi > Quality 10 So everytime i do have to make this steps: 1) ...
4
votes
2answers
558 views

Save to IDML script not working in CC2017

I'm relatively new at using scripts & the ExtendScript toolkit - and I'm working in an office environment where I'm using Adobe CC2017 and coworkers are using CS5. In order for my InDesign files ...
1
vote
0answers
76 views

Is there an automated way to draw pixel measures on an image in GIMP

Question Is there an existing plugin or script for GIMP that performs the same function as the pixelmeasure script described below? Background There is a JSX script for Photoshop (pixelmeasure.jsx) ...