Skip to main content
michael e stern
Known Participant
February 17, 2015
Question

I need a custom script written for photomerge

  • February 17, 2015
  • 3 replies
  • 1470 views

Hello,

I design, shoot and produce time lapse narrative short films. I'm currently shooting a project in Torrance, Ca.

It involves a two-camera set-up. They are taking photos simultaneously via a custom made trigger cable.

I need a script made that will launch photomerge, look into each of the two folders, pull out the top two files, select auto, merge and save as a psd into a third folder. Then repeat with the next two files. They will be numbered consecutively. There are a total of 12,000 files.

If you can do this please contact me.

Thank you.

Michael

This topic has been closed for replies.

3 replies

Participant
January 29, 2023
Hello! Several years ago, you solved the problem of stitching images using photomerge. I have a similar task. You need to take an image from one folder, an image from another folder. Stitch them with the auto photomerge function and save them in a third folder. I understand that you solved the problem. Could you kindly provide me with this script? I would be very grateful. Several tens of thousands of images need to be processed. My address alian2@yandex.ru
Chuck Uebele
Community Expert
Community Expert
February 18, 2015

The mechanics of taking the files from different folders and saving to another are pretty easy. It's as JJMack point out that the photomerge script using the UI to control the script. That would have to be modified so that it load the correct settings but bypasses showing the actual dialog, which could be done, but might open a can of worms trying to get it to work. This post caught my eye as we do some time-lapse for work, and I'm also from Torrance. What is your time frame on this project?

michael e stern
Known Participant
February 19, 2015

I have found 4 people who understood what I was asking for and one of them will write the desired script for me.  JJMack I don't think you really comprehended my question but thanks anyway for trying...

For the record JJMack I know how photomerge works, I know it is a script and I know how to shoot panoramas, the nodal point, etc. but that was not my question.

Thank you csuebele...

JJMack
Community Expert
Community Expert
February 19, 2015

I would write that you know what Photomerge does. That you actually do not know how it works.  I would bet that your not a programmer and don't know a scripting language.  Most Photoshop users are like that.

The main Photoshop Photomerg script is  over a thousand line of code and if you look at the code in the beginning up front you will see  it uses five other scripts to do what it does.

$.evalFile(g_StackScriptFolderPath + "LatteUI.jsx");

$.evalFile(g_StackScriptFolderPath + "StackSupport.jsx");

$.evalFile(g_StackScriptFolderPath + "CreateImageStack.jsx");

$.evalFile(g_StackScriptFolderPath + "Geometry.jsx");

$.evalFile(g_StackScriptFolderPath + "PolyClip.jsx");

You do not know how Photomerge works or how complex its process is.   If you read what csuebele wrote and he is good at scripting. He wrote trying to modify Photomerge might open a can of worms trying to get it to work and bypass its dialog.  I believe that would be the case and writing a new script like Photomerge would be an enormous task.

However it you are only going  to be stitching  pairs or two images a simpler process may be able to be programmed to stitch two image from your setup. 

JJMack
JJMack
Community Expert
Community Expert
February 18, 2015

For images to be stitched well they needed to be taken from a fixed point and the camera rotated about the lens nodal point and exposures setting manual and fixed throughout the image capturing,  If you use two cameras if there are the same and as set the same and mounted on very close you may able to stitch the images with photomerge.   Have you tried? However dose not select which image can be stitched you need to supply the images to be stitched to Photomerge,    You place the images from both cameras into the same folder and the cameras data and time are in sync The bridge should be able to sort the images by the taken.  You should them be able to see groups of images the can be stitched.  Select one of the groups of images images from the two cameras. Them use Bridge menu Tools>Photoshop>Photomerge.  As I wrote the Photomerge script can not be batched it is interactive will alway display its dialog and Photomerge does not select the image to be stitched that is done via the dialog.

It is possible process file  from multiple folders stack image and auto align them like Photomerge.  You may even be able to reuse code from the Photomerge script in Photoshop's Presets Scripts folder Photomerge.jsx. However its complex and uses additional scripts and file.


This in the information you need to script Photoshop. Adobe Photoshop Scripting | Adobe Developer Connection

The are other programs you may want to look into.   I have seem many things in the web do some research Photosynth - Capture your world in 3D. I have even see things  on the web the have tried to stitch to stitch the web.  That is take image posted on the web from groups of images shot at the same location by many different people, cameras and time and still stitch these.

JJMack