• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit Search
0

I need a custom script written for photomerge

Community Beginner ,
Feb 17, 2015 Feb 17, 2015

Copy link to clipboard

Copied

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

TOPICS
Actions and scripting

Views

820

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2015 Feb 17, 2015

Copy link to clipboard

Copied

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.

Capture.jpg

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 18, 2015 Feb 18, 2015

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 18, 2015 Feb 18, 2015

Copy link to clipboard

Copied

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 18, 2015 Feb 18, 2015

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 18, 2015 Feb 18, 2015

Copy link to clipboard

Copied

JJMack,

I'm guessing English is not your first language and that lead you to a misunderstanding. Don't get so defensive. You were wrong. Admit it. No big deal Let it go.

Life is too short.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 18, 2015 Feb 18, 2015

Copy link to clipboard

Copied

The details of how photomerge works is irrelevant to this request. It was a request to write a script to get it to perform a function outside of its' original task. And I found the answer.

I never said I was going to write it. I was asking for someone to write it for me and you said it couldn't be done. But it can. You are incorrect. You don't get the ten points. Move on.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 18, 2015 Feb 18, 2015

Copy link to clipboard

Copied

English is my native language but I'm not good with it. I flunked every English course I ever had to take.  How photomerge works is most relevant for you wanted to batch it and the way is works make that impossible your logic is as poor as my English.

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Feb 18, 2015 Feb 18, 2015

Copy link to clipboard

Copied

open a can of worms trying to get it to work and bypass its dialog

It's actually not that hard. You set runphotomergeFromScript to true, include Photomerge.jsx,

and for each pair of files call photomerge.createPanorama(). There's additional setup that needs to get done

on the photomerge object, but that can be hammered out fairly easily. This is, of course, if I understand the

requirements correctly.

[Edit]

Of course, you'd need a minimal UI to select input and output folders, but more than a few of us can do that in our sleep.

Then again, hardwiring the paths in the script would work, too. I'm lazy like that.

[/Edit]

As I wrote the Photomerge script

I think ya missed a comma there, JJ.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 18, 2015 Feb 18, 2015

Copy link to clipboard

Copied

Only one comma I might be getting better at English.

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 19, 2015 Feb 19, 2015

Copy link to clipboard

Copied

Of, course, X, now it looks so simple - not really. But you're the number one guy outside of Adobe, I'm not surprised you know exactly what to do.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 19, 2015 Feb 19, 2015

Copy link to clipboard

Copied

Yes now we see it at the end of the Photomerge script thanks to X there is that section.  Never looked that far into the script. myself..

Capture.jpg

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Feb 19, 2015 Feb 19, 2015

Copy link to clipboard

Copied

Never looked that far into the script. myself..

When looking at Adobe's code, I got into the habit of reading a couple of screens of code from the top, then going right to the bottom. For the scripts that have to be called from Bridge and/or can be recorded in an Action, they typically have the structure found here.

Also note that instead of "include"ing Photomerge.jsx, and calling photomerge.createPanorama(), you could take a peek in photoshop.jsx where the Bridge integration is located, and discover that Adobe has already done all of the wrapping code in photoshop.noDialogPhotoMerge() which simply takes a list of files to be processed. I would just copy the parts needed out of that script

and go from there.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 19, 2015 Feb 19, 2015

Copy link to clipboard

Copied

Yep, sure enough, X! It's all there in the scripts, if you just look far enough. Interesting that Adobe is now adding the version number to photoshop.jsx.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 29, 2023 Jan 29, 2023

Copy link to clipboard

Copied

LATEST
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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines