Hot answers tagged

4

Based on the Illustrator JS manual I've come up with the code below. This code does exactly what you want: Creates a gradient with two color stops: black and white Repeats it five times Applies it as a stroke to the active (selected) element A more generalistic version can be found below the line. (1) First we set the desired number of colors and the ...


4

You can achieve this with Illustrator scripting. Checking the documentation for CC15.3 in the JavaScript Reference PDF under Gradients on page 68. Create the colors: // Create the colors var startColor = new RGBColor(); startColor.red = 0; startColor.green = 100; startColor.blue = 255; var middleColor = new RGBColor(); middleColor.red = 252; ...


4

This will only work if you are using the gradient as a stroke (as in your question). If you want to repeat the gradient endlessly (as opposed to a specific number of repeats) then you can skip steps 2 and 3 and use a pattern brush instead of an art brush. In CC you can now use images in brushes so you may be able to rasterize the gradient instead of ...


3

No problem we can script this in a minute (10 to be exact, I'm a bit rusty). Put this script in a .jsx  file and run it using extend script toolkit: #target photoshop main(); function main() { var layers = app.activeDocument.layers; var file = File.saveDialog('save layer info', 'layerinfo:*.txt'); file.open('w'); handleOnelayer(...


3

Consider using something like Matematica or Matlab for the job. Mathematica is pretty powerful in this department and quite easy to use. But yes you can use match color* it is a similar histogram matching function in Photoshop. You can save the statistics, then record a action with applying match by loading the statistics. You can then use batch processing ...


3

There is no way you will get that transformation done with that kind of quality. It would be the ultimate goal for NPR graphics, image segmentation, artificial intelligence, reverse engineering and computer vision researchers. An algorithm like this could give you millions just by selling the product to health care professionals or manufacturing plants. If i ...


2

Step 1: Extract all individual pages Step 2: Set up an Action to do your above process + saving Step 3: Create a Droplet to run that action on each page Step 4: Combine all files back into a single PDF Step 5: Print


2

What I do is add 3 big folders to my work. Header, Body and Footer cause for a web designer these are very easy to distinguish. Place all my static layers in the Header, in the Footer I usually have stuff like copyright and lower menu and I always work in my Body, every other thing is there, therefore I do not need to open any other folder and doing so ...


2

File > Scripts > Load Files into Stack One dialog to set.. then sit back and let Photoshop work. This will open a new document and place all the images as layers... but you can then easily move the layers to another document if needed when the operation is complete.


1

I Believe you are referencing to something that photoshop already does, This is what's known as an action. If you record an action, you will notice that it should also record the mouse clicks too. I hope this helps you. Please let me know if there is anything else I can help with.


1

Use the timeline to create the animation. https://helpx.adobe.com/photoshop/using/creating-timeline-animations.html For the sake of simplicity let's say you want to have an animation with 10 frames, moving your layer 10 pixels to the right between images (so your layer will travel 100 pixels in total). Open the timeline (Window > Timeline) and click "...


1

Other than paying for a plugin, and since you've already created each separate layer in each separate screen with no 'connection' to a smart object or each other, it's not currently possible. My suggestion, since you would have to go through each screen separately now anyways, would be to: Add a smart object layer filled with color and mask it to the ...


1

Update: I wrote a script that should do what you want. Save it to a file with a .jsx extension and run the script with your document open. It will prompt you for the name of the font you want to replace, then the font you want to replace with. You will need to enter the PostScript name of the fonts. var fontToReplace = prompt("Which font would you like to ...


1

Ok, I had some ico's in a folder and it seems if one has any ico in the project that the ico plugin will pop up for export options at some point depending on what is called(in my case, doc.Trim()). It only does this once after project load. My script was ignoring all the ico files I had so I thought it shouldn't matter. Seems to be some kind of ...


1

I'm not used to scripting with Photoshop so I'm not sure if there is a way to get PathPointInfo to work in pixels—seems there should be—but I can't find it. One solution is to just change the document resolution to 72PPI. You can save the initial resolution at the beginning of the script, change to 72PPI then change back to the initial resolution once you ...


1

This is usual behaviour for Photoshop. The file has layers and therefor can't be saved as a JPG, you are actually saving a flattened copy of your PSD (notice 'Save: As as Copy' is selected and greyed out). If you flatten the image first you should be able to save the file as a JPG without creating a copy. I'm not sure what your workflow is in this instance ...


1

Not quite sure that you can add that exact option to an action. But here's what you can do instead: Go to File -> Export -> Export Preferences then change your preferences to something like this (you could make that part of your action too if you'll need to change this frequently): Make sure Quick Export Location is set to Export files to an assets ...


1

This is a common misunderstanding with actions. Insert Stop can be used to give kind of like a reminder or to give a full stop. Full stop in the sense that it can stop the Action there and you have to manually continue the Action when you're done with what ever you need to do in between. In the Insert stop window, checking Allow continue basically makes ...


1

Lots of ways of doing this but this is the quickest I've found Right-click on a layer or layer group and select Export As... Change the scale to 50% and set format options Hit Export All... There's a specific function for exporting assets at different pixel densities in the top left of this dialog, but it looks like it's designed for people editing @1x ...


1

I have a feeling that you could do that with ActionReference, but I've got no idea how. ...however, I wrote this script that should work, but it's also kind of stupid... Both of these are based on the knowledge that if you group a Clipping mask base layer, it groups it and every single layer attached to it. This is the only type of layer that acts this ...


1

As I said in the comments use Replace Color. True, you'll need to run it for each layer (although you could do it for every layer automatically, keep reading) but it will be much faster than using the fill tool. Why is that? Well because you can turn replace color into an action. This will require some initial set-up: Go to your layer and replace color. ...


1

How can I easily assembly a sprite sheet? has a script sample which (in part) deals with iterating through layers and toggling visibility. And How to automate exporting multiple PNGs with different sizes from Photoshop? has a link in "Justin Putney"'s answer which contains the following snippet that handles an array of sizes, defines a filename, and "save ...


1

This script did the trick! Just follow the readme and everything will work :) https://photoshopscripts.wordpress.com/2012/12/09/split-to-layers/


1

Not by default (Maybe there is a way with a script). When you create an action for moving an object using the free transform tool, you're moving that object relative to the canvas and not another object. So if you record an action to be left 100px, the action with record that as a percentage. What you could do If you are creating artwork using columns. You ...


1

I found a way today that I didn't know, it is partly as Michael Osterhus says, but I didn't really get what he meant to begin with. You need to write your text with just a single click, not a draggable bounding box. This can be placed wherever you want. Next step you create a box, I used the Rectangle tool to create a box of the area where I wanted my text ...



Only top voted, non community-wiki answers of a minimum length are eligible