Questions tagged [javascript]
Questions related to Javascript code, one of the main technologies behind the web and also being used in Adobe software.
7
questions
8
votes
1answer
1k views
Script to automatically snap all points to grid in Adobe Illustrator?
How would you write a script to move all points of all selected paths to the nearest (non-pixel grid) grid point?
e.g. I want all of the points of each polygon/path to snap to the nearest point on a ...
0
votes
2answers
466 views
How do I set eyedropper settings using Photoshop ExtendScript (Javascript)?
Is there a way to set Photoshop's eyedropper settings (sample size, sample, show sample ring) in a script? Or, failing that, use the script to find out what the current settings are? Thanks.
0
votes
1answer
2k views
Script to change a color in all layers of a PSD file to another color?
Is it possible to loop through all layers (there are too many layers) and replace one color with another. Need automated approach, script or simple action.
Loop through all layers{
Change Fill ...
1
vote
1answer
245 views
How to select all shapes with specific color and replace this color with an other one?
I am totally new in Photoshop scripting, but I have some JavaScript experience.
I want to make a script (or find an existing one and study it) that finds every shape with a specific fill color in my ...
0
votes
0answers
212 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?
0
votes
1answer
274 views
How can I get an RGB color using Photoshop's color picker instead of systems's?
I am using this script bellow to get an RGB color from color picker. Any idea how can I do the same thing but using Photoshop's color piker instead of system's one?
var hexToRGB = function(hex) {
...
0
votes
2answers
584 views
Dieline image to a box in Three.js
I have created a dieline image using Three.js. Now I need to convert this dieline into a box.
This is my code for the dieline:
<script>
var canvas;
var imgElement = document....