As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [javascript]

Questions related to Javascript code, one of the main technologies behind the web and also being used in Adobe software.

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

Seeking Help with Batch Processing PSD Wall Art Mockups

seek assistance with a script I've been working on for the past couple of months. My goal is to batch process multiple PSD wall art mockups, replacing the smart objects within each mockup with several ...
Patrice Ferguson's user avatar
0 votes
0 answers
25 views

Why are other text fields affected?

My code actually works very well. My goal is just to replace the word PANTONE. But why does it distort the colors and sizes of other text areas? for(var j = 0; j < app.documents[0].textFrames....
enisio's user avatar
  • 41
0 votes
0 answers
69 views

why is quick export canceled by close document?

This is a working script which do the same job as it would if you hit tab File>Export>Quick Export As (PNG/JPG). There are 4 artboards and 7 layers in document. I need export 4 arboards. Result: all 4 ...
Jenna's user avatar
  • 37
1 vote
1 answer
80 views

Illustrator - Let the script only apply to one document

I found such a script. But it works on all open files and takes a lot of time. How do I do it to only one current tab. var doc = activeDocument; for(var i = 0; i < app.documents.length; i++) ...
enisio's user avatar
  • 41
1 vote
0 answers
142 views

Photoshop script to insert an image into a layer

I am using Photoshop and Photopea to streamline a workflow. Rather than making hundreds of PSD templates I am hoping to use a base template in where a script dynamically adds the right image depending ...
Toby James Olsen's user avatar
0 votes
0 answers
38 views

How to Convert Figma Design to React?

Is there any way with the help of which i can easily convert my figma designs into reactjs? I am new in developing line and it seems very difficult for me to understand react while i have the ...
Mahi Kaushik's user avatar
0 votes
0 answers
35 views

Is there a way to script this button in Datylon?

The button is to relink the data in the file. I have been in contact with Datylon, but I think they are trying to upsale me to use their server integration, but for security reasons, this is not ...
Steven Tolle's user avatar
0 votes
0 answers
275 views

Replace Smart Object Script doesn't place the image in the right size, what to do?

// Replace SmartObject’s Content and Save as JPG // 2017, use it at your own risk // Via @Circle B: https://graphicdesign.stackexchange.com/questions/92796/replacing-a-smart-object-in-bulk-with-...
pofdzm's user avatar
  • 3
0 votes
1 answer
297 views

Script in InDesign to separate document into individual files with naming capabilities [closed]

I'm looking for a script that can separate a document into individual InDesign files that, upon extraction, allows for some naming capabilities for each page such as either: adding a suffix (page ...
user174211's user avatar
0 votes
0 answers
24 views

Drag object around a circle on mouse over - Adobe Animate/Create.js/Easel.js

Using Adobe Animate HTML5 Canvas which employs Create.js/Easel.js. I have the following code which drags an object around a circle. Works Ok, but the object should only be moveable when the cursor is ...
IlludiumPu36's user avatar
0 votes
0 answers
191 views

How to modify and fix this Adobe CEP Extension (Adobe Scripts Panel)

There is a very useful Adobe CC extension called Adobe Scripts Panel, which is essentially a panel that lets you run scripts on the fly without having to go to File > Scripts > Select Script in ...
fmotion1's user avatar
  • 145
1 vote
1 answer
65 views

3d virtual exhibition stand

I would like to make an online 3d virtual exhibition stand (visitors of the website should be able to "go" through the 3D stand-model and by chance click on the items or watch the videos on ...
Peter's user avatar
  • 11
-1 votes
1 answer
296 views

How can I SELECT multiple artboards To duplicate them in Adobe Illustrator with action or with script?

I have like 270 files each file have 4 artboards, So I want to duplicate the ArtB(3) and ArtB(4) For 80 times, but I need a script to select the artboards that i need then duplicate them in action to ...
So Brawl's user avatar
0 votes
1 answer
63 views

How to decorate strings of text as nodes if they span across multiple lines?

I have a belief network, in which each node is a belief sentence: In my analysis I want to decorate those sentence to make it like they are nodes: (The colors are not matching, but I'll fix later) ...
Ooker's user avatar
  • 1,761
0 votes
0 answers
152 views

Illustrator - how to properly check the path is a rectangle shape and is rotated using javascript?

When I import DWG files which contain simple objects, mostly rectangles, circles, lines or polygones and save the result in SVG sometimes i get shapes with matrix transformation. I know what is matrix ...
KrzysztofJ's user avatar
0 votes
0 answers
154 views

Show/hide standard Adobe Reader toolbar using JavaScript

Is there a line of JavaScript that can be used to show/hide (ideally alternately as a toggle) the default toolbar in Adobe Reader -- i.e. the same that happens when you press F8? I have tried  app....
David.P's user avatar
  • 163
3 votes
1 answer
463 views

How do I fix missing opacity masks in rendered svg files on the HTML5 Canvas [closed]

I'm currently working on a project that is using the HTML5 Canvas API and I'm encountering a few problems, one of which is disappearing opacity masks used to add texture to an element in Adobe ...
Fishbite's user avatar
0 votes
1 answer
263 views

How can I get a Photoshop script (Javascript) to write a newline in a file instead of Control-M?

I'm using JavaScript script in Photoshop (Ps 22.5.1 on macOS 11.6) to write out some information to a file. When I represent a newline in my code with a \n, instead of getting a newline I get a ^M (...
raindog308's user avatar
-1 votes
1 answer
227 views

Copying Selection to Multiple Layer in Different Position

I am trying to cut selection and paste into four different layers using javascript (layer 01, layer 02 etc.) Like the example picture below: I am trying to find a solution but because of my lack of ...
Katherine Elizabeth Kath's user avatar
1 vote
0 answers
166 views

Illustrator scripting: setting bleeds

Trying to solve this has been an odyssey, thanks in part to Adobe's new community platform breaking old links. Most of what I found is in this thread. So for some stupid and arbitrary reason, document ...
greglab's user avatar
  • 11
0 votes
0 answers
134 views

Photoshop Javascript - color lookup set lut

Say I have the lookup layer as lookup = app.currentDocument.activeLayer How can I set the setting on the layer? As far as I can tell its Art Layer base class, and I can only see base calls in my data ...
Dariusz's user avatar
  • 101
1 vote
0 answers
51 views

Script to create linear path from bezier path on document grid

How do I find the nearest grid point of a bezier path as it intersects the document grid? I am writing a script to create a linear copy of of a bezier path. I need to know where the path crosses the ...
Valerie's user avatar
  • 111
0 votes
1 answer
383 views

inDesign Script to "when textbox created paste clipboard content in it"

I have no experience with scripting, but I can maybe explain what the intented script should do: Select text, cut it. Ctrl + X after mouseUp. Make textbox (manually). Drag with mouse, if possible &...
Amorim's user avatar
  • 1
1 vote
2 answers
991 views

How to write a photoshop script to resize the image until it covers the whole canvas? (not just fit the height[or shortest length])

How to Batch Resize in Photoshop This doesn't seem to work, so I think a script way might be what I need. Adobe Photoshop Scripting The resize method in its JavaScript reference guide doesn't seem to ...
Ryan Case's user avatar
3 votes
1 answer
765 views

How to select or copy all text in InDesign document

I want to select all text content of every page in an InDesign document or copying all text in InDesign document. I have tried scripting method, but did not work.
karky's user avatar
  • 31
0 votes
0 answers
81 views

AI Script to control the anchor of the rectangle from the left

Can I control a rectangle's anchor on the left with a script up or down (like in the picture). var Rctngl=0; var var_Integer; mm = 2.834645731787465 var_Integer =Rctngl; var_Integer = prompt ("...
enisio's user avatar
  • 41
0 votes
1 answer
241 views

ExtendScript: Align group items centered in Ilustrator

Hi, I am new to illustrator and I want to align the textFrame centered to the pathItem(square) using Extendscript as shown in picture1. I have uploaded another picture, which shows the layer and group ...
dextoruz's user avatar
0 votes
0 answers
76 views

How to add an image from local machine to already existing layer on photoshop using javascript photoshop scripting?

I have an existing design and layers on photoshop and I want to add an image from my local machine to one of those layers and I don't know how to do it using a script on javascript? please any help on ...
CTMA's user avatar
  • 1
1 vote
1 answer
507 views

Extendscript: How can i change text frame attributes in illustrator

Hi, I am new to illustrator and do not know about its tools' name. So, I want to change these attributes(underlined in red color shown in the picture) through ExtendScripting. Just let me know their ...
dextoruz's user avatar
0 votes
1 answer
132 views

Indesign: Javascript to access the New Hyperlink panel

I want to create what is hopefully a simple javascript action that I can assign to a keyboard shortcut to save me clicking the same steps over and over. Basically, I want to highlight my text, then ...
Rory's user avatar
  • 1
0 votes
1 answer
114 views

Create multiple document from each group in illustrator useing javascript

I have Ai file whitch file have many groups each group different design. How can I create javascript to separate each group to file. Or any options to do this and each file have to be same name as ...
Mehedi Hasan's user avatar
1 vote
1 answer
200 views

How to place xml nodes into indesign pages (one by one)?

I am trying to place a lot of tables into my document, one by one, but i can't place more than 1 table, does anybody knows how to place each table on one page or textframe? I am using xml nodes like ...
Giovanna's user avatar
-2 votes
1 answer
735 views

how get paragraph style and character style of selected text in indesign by script

I want the selected text to be displayed to me when I select a word or text in InDesign by executing the style paragraph script and its style character?
tabalvor andisheh's user avatar
1 vote
1 answer
253 views

Get the average color of a raster image for a mosaic effect

I've been searching for a way to get the average color of a raster image, to use in a vector grid in front of it to create a mosaic effect - the "Object > Create Object Mosaic..." menu ...
Francisco Vital's user avatar
0 votes
1 answer
1k views

Move item to a different layer using script in Adobe Illustrator

This may be a something I skipped over in my search, but can anyone show me how to add an item to a layer using a JavaScript Adobe Illustrator script? Also, are there any good resources for learning ...
eeeeeeeeee's user avatar
0 votes
1 answer
981 views

How to change the color of text inside a TextFrame instead of color of the bounding box itself

Inside indesign javascript scripting: how it is possible to change the color of a block of text instead the color of the bounding box of the block itself? Because something like: textFrame.fillColor ...
user3450548's user avatar
1 vote
1 answer
158 views

Why does InDesign search not begin at beginning?

I am using a script to copy sequential lines from an input text file into an InDesign document. I have used the script a number of times with no problems. var fi = new File("C:/Documents/input.txt") ...
Ad Astm's user avatar
  • 155
0 votes
1 answer
374 views

Photoshop Scripting - applying changes only to selected artboards

Having trouble specifically with artboards for Photoshop scripting. What I want it to do: I have a photoshop file with 8 artboards, and I want to apply changes (name changes) to the selected ...
user145044's user avatar
0 votes
1 answer
427 views

Issue on returning a variable from an evalScript function

I am working on a CEP HTML panel for Photoshop and I want to check first if there is any opened documents before my panel do what it has to do. So I made something like this into my index.js so to ...
Simos Sigma's user avatar
0 votes
1 answer
95 views

Communication issue between functions into JS and JSX files

I have made this function into a JS file... function getColors(isPick, isForecolor) { var chosenFunction = 'getColor(' + isPick + ', ' + isForecolor + ')'; csInterface.evalScript(...
Simos Sigma's user avatar
1 vote
0 answers
71 views

Selecting and moving anchor points based on User input

I am pretty now to scripting inside Adobe Illustrator. I made a basic script, that opens UI window, where user input three dimensions and the output is three variables X, Y, Z. What I want: I want ...
5s3a_'s user avatar
  • 11
0 votes
0 answers
382 views

How to replace Smart Image with a different graphic WITHOUT using Photoshop?

This Q&A offers a method by using Photoshop to load .js. However, I found this website can achieve this goal without using Photoshop. My question is how this website achieves this goal?
olivia's user avatar
  • 101
0 votes
2 answers
3k views

How can I export a PDF from InDesign with Javascript?

I want to find a script (preferably Javascript) and all it needs to do is export a PDF to a specific folder that I can set the path for in the script. Does anyone know of a script that might have ...
Rory's user avatar
  • 1
2 votes
0 answers
158 views

How can I get layers data in relation to their group name?

I am making a Photoshop script which gets every layer with Bevel and Emboss effect and then doing some actions. I have make this function so to get layers data... function getLayersData() { ...
Simos Sigma's user avatar
0 votes
0 answers
132 views

Update Adobe Illustrator CS3 plugin to CS6

I'm seeking a method to make a script currently compatible with Adobe Illustrator CS3; compatible with Ai CS6. On launch Ai CS6, displays "Error loading plugins". The issue could be the UI, as CS3 and ...
Adrian's user avatar
  • 1
2 votes
1 answer
459 views

How to automatically generate text that adopts the same name as an imported image or Excel file in illustrator?

I have a lot of product photos to edit in Illustrator. I want to create several artboards with one product image, and then one text box for each artboard, but I need these to automatically adopt the ...
Jacob's user avatar
  • 21
1 vote
1 answer
100 views

Get values from an applied bevel and emboss effect for multiple layers?

I created this function below, to get some values from an applied bevel and emboss effect, like shading angle, shading altitude etc. alert("Angle: " + getBevelAndEmbossValues()[0] + "\nAltitude: " + ...
Simos Sigma's user avatar
0 votes
0 answers
67 views

How to find all text layers with specific color and replace this color with an other one?

Recently, I added a similar question about how to find all shapes with specific color and replace this color with an other one. Sergey Kritskiy gave me the solution with a working example which I ...
Simos Sigma's user avatar
-1 votes
1 answer
211 views

Explanation of a function line by line for learning purposes!

As the title says, I need someone to give me an explanation of this function below, line by line, for learning purposes. Thank you in advance!!! function getAllShapeLayersData() { var lyrs = []; ...
Simos Sigma's user avatar
1 vote
1 answer
92 views

How can I get an alert with layers count before they change?

I have this function below and before it calls bevel(); function, I want first to add an alert where it says how many layers going to be change... function goThroughLayers(parentLayer){ for(var i=...
Simos Sigma's user avatar