Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

I need a script to incrementally nudge layers (to align them)

$
0
0

Hi,

 

I have a video file which I have chopped into jpegs, the images show a vehicle moving through a scene one pixel at at time. I need a script to move the scene so the movement is static, by incrementally nudging the image left or right

 

for example if I load to a stack the layers would be like this (x = background v = vehicle)

 


xxxxxxvxxxxxx
xxxxxvxxxxxxx
xxxxvxxxxxxxx
xxxvxxxxxxxxx
xxvxxxxxxxxxx
xvxxxxxxxxxxx

 


I need the output to be like this

 

xvx
xvx
xvx
xvx
xvx
xvx

 

the amount of movement I need is just 1 pixel increment from each image, and the final can then be cropped down. There are 720 images per stack and about 6 different stacks to process. The background will be elongated before the script running so that when I crop down I will have the amount I want


Basically, I want something like,

 

Select Layer 1
Nudge left by "nudgeamount"

Increase "nudgeamount"+1
Select next layer

run until last layer


Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>