For positioning text you don't need a bounding box.
I never use bounding boxes for text in PS. I click the text tool without dragging and set the text cursor without a box. Once the text is entered, I can center it vertically or horizontally just like any other shape using the align buttons--assuming I have something to align it to.
I do the same ...
Found instructions for exporting just the actions you need.
View your actions by going to Window > Actions.
If your actions aren't contained in a set, create one by clicking the folder icon at the bottom of the action widget.
Drag the actions you need into the new set.
Make sure you have the action set selected.
From the menu in the Actions widget () ...
This could be a good time to introduce scripting and the script listener to your tool set. While a plugin is fine you might have some other ideas later where this might help. So here is my quickly clobbered together script. To use this change the setup part and put this in a jsx file (and then drag an drop on Photoshop for instance):
// setup preferences
You can put a Conditional step in an action: use the Insert Conditional... command in the Actions flyout menu:
So first create an action to rotate and save a document. Then create an action with a condition. There's a rule If Current Document Is Landscape
so Then Play Action will remain None and Else Play Action will be your rotate & save action.
I have made a limited (no support for LAB, HSB or spot color at the moment) python aco -> text dumper. The script itself is a one off quickly done one so you need to change the file name to read or name your out file test.aco:
# -*- coding: utf-8 -*-
# quick script no warranties whatsoever
Use Bridge, which has a filter for orientation.
Drop the images into a folder, click the 'portrait' filter, which selects every portrait image in your folder, then the rotate tool at the top.
You can use File->Scripts->Export layers to files to create PDFs. Choose PDF under File type in the Export Layers to Files dialog box. It's easy to miss since it's the option just above PSD.
As far as being slow... Don't know how big your image is or how many layers there are, but on an old (2008) MacBook Pro it exported a 2848x4288 pixel image's ...
As others have answered, you should use scripting. But some of the other solutions here only use RGB, whereas mine uses colours you choose from your document. Also some solutions didn't produce even colour at the wraparound point, or had too many and/or overlapping gradient stops, so my script addresses those issues.
To use it, select 2 or ...
You might find the navigator window helpful. You can pull the window off the tabs, and resize. When you zoom in on the image the navigator displays where you are in the image. It also updates immediately. I often use this functionality when retouching.
You can also drag the square around the navigator window, and the main window will move to that position....
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;
That is basicly a simple Inverted solarization.
1) Open Curves (Ctrl+M)
2) Use a U shaped curve.
(The normal solarization is an inverted U shape)
But of course you can prepare some masking to controll the result.
If the case I would prepare a mask
Copying the image.
Pasting it into a new layer mask.
To my knowledge there's no way to use UV data in Photoshop and I'm not sure it would help with this example because the deformation is quite strong: it'd be a job for vector displacement filter (which Photoshop also doesn't have). If I had a task like this I'd go 3d and since you have Blender as a tag, here's a little breakdown of how I'd approach this:
You say the pattern is binary, but in fact it consists of 4 different "tones":
Create a pattern for each of the middle tones (with the circles) by making a selection and choosing Edit > Define Pattern. (In this example I've made the squares 32x32 px)
Convert the image you want to transform to grayscale and scale it down to a fitting size.
Let's take ...
I would recommend Imagemagick as the appropriate tool here. It has a high learning curve, but is much faster than Photoshop for this sort of batch processing. The following commands should work:
convert inputFolder/* +append output.png
where inputFolder is a folder containing only the images you're interested in. They should be named in sequence (001, 002, ...
It looks like I can use prompt to get a value:
var value = prompt("Type in the name of the file", "filename.png");
If we run the code in Photoshop,
There's quite a lot you can do with custom scripting. There's a lot to learn and it's got kind of a steep learning curve at first because they have a lot of their own stuff, but it's pretty powerful and flexible.
Here's a list of resources to get you started:...
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 ...
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 ...
RotateMe script is as close to Illustrator's Effect > Distor & Transform > Transform as you get with PS.
The link seems to be down so code at the bottom of this answer ↓
Using Transform again, Edit → Transform → Again ( Cmd/Ctrl + Shift + T )
If you add Alt to the shortcut keys, it does "Duplicate again".
This should be a lot faster. Instead of copy and pasting into a new file hundreds of times, it does this:
Makes the Background into a Layer.
Reduces the Canvas size down to the cell size.
Slides the Layer around 'under' the Canvas to the correct location.
Does a "Save For Web" essentially the same as your script.
Go to 3 and repeat, then stop when it runs ...
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 ...
You should try this script that user Johannes graciously shared: https://graphicdesign.stackexchange.com/a/1962/24301
It's basically an improved version of the built-in PS "Export Layers to Files" script that allows (among other things) for saving the layers by their layer name. This will export all layers in your file as they are positioned keeping their ...
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 ...
I found this page that has an answer that looked close to what you're looking for, I modified it to work with the latest version and to hopefully fit your needs better.
Here's how to use it:
Save the code below in a file with a .js extension
Open your template file and select the SmartObject
Go to File->Scripts->Browse
Find your .js file and open it
Because the nearest color isn't universally accepted concept, I give my own formula.
The problematic color is in the bottom layer and the palette is above it. The palette layer has blending mode = difference. Find the darkest piece in the palette. That's the nearest color. Use the color picker and watch the brightness values. In this case the nearest color ...