Command Line Operations with PTGUI and the Mac's Automator

1,559 views
Skip to first unread message

Jeff

unread,
Feb 2, 2010, 5:03:05 PM2/2/10
to PTGui Support
I'm looking into command line operations with PTGUI Pro and was
looking for any information that will let me use PTGui Pro with
Apple's OSX Automator. I have to produce large numbers of spherical
images over a short period of time and would like to use several of
PTGui Pro features to my advantage. The shooting of the spherical
photos has been standardize and my use of PTGui is very straight
forward. Is there any information on command line operations for
PTGui Pro and where can I find them.

Thanks

Hans

unread,
Feb 2, 2010, 6:31:15 PM2/2/10
to PTGui Support
Jeffrey what do you want to automize.
Are you talking about non PTGui operations in combination with PTgui
or is it just the stitching process.

PTgui is fully capable of producing panoramas in batch function if you
know how to set up a template with the Project settings and use the
batchbuilder.

How you do it depends a little of the Camera/lens and if you use one
single camera or several Cameras of similar type, for example a 5D and
a 5D Mark II with same lens and using the same template needs a
special function to be set in the Project settings.

Hans

Matthew Rogers

unread,
Feb 2, 2010, 6:44:26 PM2/2/10
to pt...@googlegroups.com
As PTGui Pro isn't a true Cocoa app you can't use Applescript which
means the only way to semi-script it is via recorded actions. Simply
recording actions very rarely works and is extremely buggy.

Matt

On 2 Feb 2010, at 23:31, Hans wrote:
>
> On Feb 2, 11:03 pm, Jeff <jeffreytb...@gmail.com> wrote:
>> I'm looking into command line operations with PTGUI Pro and was
>> looking for any information that will let me use PTGui Pro with
>> Apple's OSX Automator. I have to produce large numbers of spherical
>> images over a short period of time and would like to use several of
>> PTGui Pro features to my advantage. The shooting of the spherical
>> photos has been standardize and my use of PTGui is very straight
>> forward. Is there any information on command line operations for
>> PTGui Pro and where can I find them.
>>
>> Thanks
>

> --
> You received this message because you are subscribed to the Google
> Groups "PTGui" group.
> To post to this group, send email to pt...@googlegroups.com
> To unsubscribe from this group, send email to ptgui+un...@googlegroups.com
> Please do not add attachments to your posts; instead you may upload
> files at
> http://groups.google.com/group/ptgui/files
> For more options, visit this group at http://groups.google.com/group/ptgui


PTGui Support

unread,
Feb 3, 2010, 4:02:21 AM2/3/10
to pt...@googlegroups.com
Hi Jeff,

Basically the only way to automate PTGui is by launching the batch
stitcher with a project file, something like this:

"/Applications/PTGui Pro.app/Contents/MacOS/PTGui Pro" -batch xxx.pts

Adding the -x switch will close the window when done.

The good thing is that the batch stitcher covers all functionality of
PTGui, including control point generation and optimizing. This can be
programmed in the Project Settings tab. Since project files are plain
text files you can easily generate your own or modify existing ones.

And also take a look at the Batch Builder, chances are it already does
what you need without any scripting.

Joost

Mohammad

unread,
Aug 1, 2012, 10:32:03 AM8/1/12
to pt...@googlegroups.com
I was actually running the batch stitcher from command line with the following command (as you mentioned):

/Applications/PTGui Pro.app/Contents/MacOS/PTGui Pro" -batch xxx.pts

It basically runs the same GUI stitcher. I was trying to check if the stitcher successfully stitched the images or failed. If I run them from command line, it looks like it doesn't return or print anything in the terminal. Is there any way to track the status programmatically? That's because, I was using an automated script in Java to run the tool.

Any idea?

PTGui Support

unread,
Aug 1, 2012, 11:03:30 AM8/1/12
to pt...@googlegroups.com
Hi Mohammad,

If you add the -x option the batch stitcher will quit when the project
has been processed. You could then wait until the process has terminated.

Joost
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui" group.
> To post to this group, send email to pt...@googlegroups.com
> To unsubscribe from this group, send email to
> ptgui+un...@googlegroups.com
> Please do not add attachments to your posts; instead upload your files
> at a file sharing site (for example http://ge.tt/ ) and include a link
> in your message.

Mohammad

unread,
Aug 1, 2012, 11:14:09 AM8/1/12
to pt...@googlegroups.com
I have figured out that doesn't really close it right away, until you move your mouse. That's weird.
By the way I'm using PTGui Pro 9.0 on Mac OS X Lion.

Ananda Shah

unread,
Jan 25, 2013, 6:21:09 PM1/25/13
to pt...@googlegroups.com
HI,

 Im looking for a similar functionality which will give me the ability to apply numerical transform to each project file separately, and then batch stitch it.
Is this possible?

Thanks,
Ando

os...@rain-maker.com.tw

unread,
May 31, 2013, 8:34:12 PM5/31/13
to pt...@googlegroups.com
Dear Sir,


I found the -x options seems don't work in PTGui Pro 9.
We use the PTGui command line to stitch panorama.  It worked fine in PTGui Pro 8.3.X for a long time.
After the upgrade to 9, the PTGui windows won't close automatically in spite the -x options.
The mouse or keyboard must be touched such that the windows close.  If we do nothing, the PTGui windows won't close automatically.

Can anybody solve this issue?

My OS is Mountain Lion.


Oscar Wu



PTGui Support於 2012年8月1日星期三UTC+8下午11時03分30秒寫道:

PTGui Support

unread,
Jun 1, 2013, 1:16:34 PM6/1/13
to pt...@googlegroups.com
Hi Oscar,

I will look into this.

Kind regards,

New House Internet Services BV
Joost Nieuwenhuijse

-----------------------------------------------
PTGui - Photo Stitching Software

www.ptgui.com
For support see: http://www.ptgui.com/faq/
-----------------------------------------------

On 6/1/13 2:34 AM, os...@rain-maker.com.tw wrote:
> Dear Sir,
>
>
> I found the -x options seems don't work in PTGui Pro 9.
> We use the PTGui command line to stitch panorama. It worked fine in
> PTGui Pro 8.3.X for a long time.
> After the upgrade to 9, the PTGui windows won't close automatically in
> spite the -x options.
> The mouse or keyboard must be touched such that the windows close. If
> we do nothing, the PTGui windows won't close automatically.
>
> Can anybody solve this issue?
>
> My OS is Mountain Lion.
>
>
> Oscar Wu
>
>
>
> PTGui Support嚙踝蕭 2012嚙羯8嚙踝蕭1嚙踝蕭P嚙踝蕭嚙確UTC+8嚙磊嚙踝蕭11嚙踝蕭03嚙踝蕭30嚙踝蕭g嚙瘩嚙瘦
> <javascript:>
> > To unsubscribe from this group, send email to
> > ptgui+un...@googlegroups.com <javascript:>
> > Please do not add attachments to your posts; instead upload your
> files
> > at a file sharing site (for example http://ge.tt/ ) and include a
> link
> > in your message.
> > For more options, visit this group at
> http://groups.google.com/group/ptgui
> <http://groups.google.com/group/ptgui>
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui" group.
> To post to this group, send email to pt...@googlegroups.com
> To unsubscribe from this group, send email to
> ptgui+un...@googlegroups.com
> Please do not add attachments to your posts; instead upload your files
> at a file sharing site (for example http://ge.tt/ ) and include a link
> in your message.
> For more options, visit this group at http://groups.google.com/group/ptgui
>
> ---
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

floz

unread,
May 14, 2014, 11:51:36 AM5/14/14
to pt...@googlegroups.com
Any updates on this? I seem to have the same issue, Batch stitcher window not closing and my bash script hence not continuing...

PTGui Support

unread,
May 14, 2014, 12:42:54 PM5/14/14
to pt...@googlegroups.com
Hi Florian,

There's no Automator support (yet).

But the problem might be caused by the way you are calling the batch
stitcher. I just noticed that the -x parameter is ignored if it precedes
-batch.

On mac the best way to call the batch stitcher is by using the 'open'
command as follows:

open "/Applications/PTGui Pro.app" -n --args -batch -x "/xxx/project.pts"

..all on one line of course. Does that work for you?

Also see
https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/open.1.html

Kind regards,

New House Internet Services BV
Joost Nieuwenhuijse

-----------------------------------------------
PTGui - Photo Stitching Software

www.ptgui.com
For support see: http://www.ptgui.com/faq/
-----------------------------------------------

> --
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui" group.
> To post to this group, send email to pt...@googlegroups.com
> To unsubscribe from this group, send email to
> ptgui+un...@googlegroups.com
> Please do not add attachments to your posts; instead upload your files
> at a file sharing site (for example http://ge.tt/ ) and include a link
> in your message.
> For more options, visit this group at http://groups.google.com/group/ptgui
>
> ---
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

PTGui Support

unread,
May 14, 2014, 12:45:56 PM5/14/14
to pt...@googlegroups.com
by the way, if you need to wait until the stitch finished: add the -W
parameter to 'open':

open "/Applications/PTGui Pro.app" -n -W --args -batch -x "/xxx/project.pts"

Joost

floz

unread,
May 15, 2014, 5:25:23 PM5/15/14
to pt...@googlegroups.com
Yep, that did the trick, thank you very much for the quick help, Joost!


On Tuesday, February 2, 2010 11:03:05 PM UTC+1, Jeffrey wrote:
Reply all
Reply to author
Forward
0 new messages