Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - eberkund

Pages: [1]
1
Python and Java API / Re: Removed return values
« on: July 06, 2017, 10:14:52 PM »
Perfect, just what I was looking for!  :)

2
Python and Java API / Removed return values
« on: July 06, 2017, 06:31:44 PM »
I see in the changelog for version 1.30 that the return values have been removed from a number of methods. Including Document.open(). Why is this? I am currently using that method to check if the project was opened successfully, is there a new way to do this?

3
Python and Java API / Re: Loops and Sleeps in Python startup script
« on: January 19, 2016, 02:00:04 AM »
Thank you so much Marcel, this will be very helpful for me when I am implementing something similar

4
Python and Java API / Re: PhotoScan.app.document not working in 1.2.2
« on: January 14, 2016, 11:15:11 PM »
Thanks, that was very useful info

5
Python and Java API / Re: PhotoScan.app.document not working in 1.2.2
« on: January 14, 2016, 09:36:37 PM »
Hi, thanks for the quick reply.

I am using the autorun folder

6
Python and Java API / PhotoScan.app.document not working in 1.2.2
« on: January 14, 2016, 07:01:04 PM »
A lot of examples in the API documentation include examples that start with this code

Code: [Select]
import PhotoScan

doc = PhotoScan.app.document

However in version 1.2.2 this is not working for me, the result in doc is empty and I cannot invoke any methods on it. I get the error:

Code: [Select]
2016-01-14 10:56:50 AttributeError: 'NoneType' object has no attribute 'save'
However, if I enter the command directly into the console it works.

7
Python and Java API / Re: Loops and Sleeps in Python startup script
« on: January 13, 2016, 06:46:59 PM »
Thanks for the reply _mARCel_,

The reason I wanted to keep the GUI responsive is because after certain stages of processing I wanted to get manual user intervention, for example to clean up extra artifacts after aligning photos. I am glad to hear that someone else is using PhotoScan in the same way, would you be able to share your script? I imagine that the processing we are doing is probably different but the queuing stuff would be incredibly useful for me.

Regards

8
Python and Java API / Re: Python scripts collection?
« on: January 13, 2016, 06:33:50 PM »
Wouldn't a GIT style environment make more sense? Better collaboration etc.

I'd like to second this suggestion. A GitHub repository where people could submit pull requests with new scripts or changes would be great.

9
Python and Java API / Loops and Sleeps in Python startup script
« on: January 09, 2016, 08:02:29 PM »
I am currently trying to implemented queued render jobs using the Python scripting API but I am encountering some problems.

I want to be able to have a loop in the Python script which will check the queue over the network and retrieve which folder of images to process. The problem I have been having is that the Python scripts appear to run on the same thread as the GUI so when I use time.sleep() or continue looping when there are no jobs in the queue, the software becomes unresponsive and crashes.

Any suggestions would be helpful,

Thanks

Pages: [1]