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

Pages: [1]
1
Python and Java API / Re: API: access to selected images
« on: September 19, 2013, 12:51:06 AM »
Hello Alexey,

Is there a way to load a script when PhotoScan opens? I would like to have this menu option available when a user opens PhotoScan.

Thanks!

Josh

2
Python and Java API / Re: API: access to selected images
« on: September 18, 2013, 10:56:52 PM »
All great information. Thank you for your help! Moving on. Next hurdle it to try to get a menu button for my script.

Thanks!

Josh

3
Python and Java API / Re: API: access to selected images
« on: September 18, 2013, 10:35:33 PM »
Fantastic! That worked. Is this a Python specific thing? Can you tell me why I had to specify that it was an array?

Thanks!

Josh

4
Python and Java API / Re: API: access to selected images
« on: September 18, 2013, 07:58:16 PM »
Hello,

I have a question along the same lines. I have a user that wants to be able to not only remove selected cameras from a chunk, but also delete the physical jpg/image file from the system as well. I am scripting this with the API but have run into an interesting issue. The problem is that when the script is run not all of the selected cameras are removed from the active chunk.

Code:

if cameraCount > 0:
   for camera in chunk.cameras:
      if camera.selected:
         print(camera.label)
         chunk.cameras.remove(camera)

This is simple code. If I rerun the script multiple times I am able to remove all the selected cameras, but I don't want the users to have to rerun multiple times. I am running Photoscan Professional 0.9.1 build 1714 64 bit.

Thanks!

Josh

Pages: [1]