Skip to main content
Participant
January 31, 2012
Question

Basic Shifting Script

  • January 31, 2012
  • 2 replies
  • 628 views

Hi All,

I hoping someone can help me make this script in photoshop.  I think it's pretty basic to make but I searched around and wasn't able to figure out how to do it myself

Here's what it needs to do...

1. Prompt user to browse for the desired TIFF file

2. Ask user how many pixels they would like to shift the logo in the WIDTH axis or X axis

3. Moves the image the desired number of pixels left or right, cutting off the sides that get shifted off the screen and leaving blank/white pixels where there is now a gap. (Exactly how it works if you use the left/right arrow keys when the entire image is selected)

4. Prompt the user and ask where to save the new file as a TIFF

This topic has been closed for replies.

2 replies

arc_fixer
Participating Frequently
February 1, 2012

Hi.

If I understand you right (I probably don't), this may help.

Record an Action:

1. Ctrl+O. Opens browser. Select the desired file.

2. Ctrl+A. Selects canvas.

3. Ctrl+T. Transform Tool. In the toolbar, top left, set to relative positioning (click on the little triangle), set the desired shift in the X axis box. Enter.

4. Ctrl+S. Save or Save As, whichever you need.

Steps 1, 3, and 4 should be set as Conditional steps. Check the box to the immediate left of the step. A conditional step stops for you to OK or change settings before you continue.

To prompt a user, insert a Stop before the step. In the Actions fly out menu, click on Stop to insert the Stop into the  action. Type instructions in the field, check Allow Continue, OK. Put a stop before each step you think needs explaining.

FWIW.

Peace,

Lee

c.pfaffenbichler
Community Expert
Community Expert
February 4, 2012

Instead of the Transformation Filter > Other > Offset (with »Set to Background« after first resetting and switching the colors) might offer a more convenient dialog.

c.pfaffenbichler
Community Expert
Community Expert
February 1, 2012

The x-axis is normally considered as the horizontal axis, if I understand correctly, and the y-axis as the vertical one.

Anyway, is that really worth automating?

How often do you need to do that?

aball9Author
Participant
February 1, 2012

Yes the horizontal axis.

And I know it's a funny request that sounds without purpose but trust me I'll use this several times daily for the rest of my life lol.