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.


Topics - Guillaume

Pages: [1]
1
Python and Java API / Auto process on start
« on: February 24, 2014, 04:51:38 PM »
Hi,

I wrote script what I placed in "Agisoft\PhotoScan Pro\scripts\" for it run on start.
When I launch PhotoScan I have an error on this script but when I launch this script in consol it's run normaly.

Code: [Select]
def import_photos() :
global repertoire_de_travail
global document

repertoire_photos = repertoire_de_travail+'/Photos/'
liste_photos = os.listdir(repertoire_photos)

# Creation du chunk
my_chunk = PhotoScan.Chunk()
my_chunk.label = "Guigui_Chunk"


for nom_photo in liste_photos :
if my_chunk.cameras.add(repertoire_photos + nom_photo) :
my_chunk.cameras.remove((len(my_chunk.cameras)) - 1)
print(nom_photo, " - imported")
else :
print(nom_photo, " - erreur")
PhotoScan.app.update()

# Creation du document et ajout du chunk
document = PhotoScan.app.document
my_chunk.enabled = True
document.chunks.add(my_chunk) # ERROR ON THIS LINE
return

This is because access to PhotoScan.app.document is blocked for autorun scripts...
The support suggest me to use custom menu item and bind all functionality to this custom option but I need to execute (Align / Optimization / Build mesh) automaticly when I open PhotoScan.


2
Feature Requests / Export Points
« on: August 09, 2013, 10:07:14 AM »
Hi,

Sorry for my noob question.
What is the "point normals" option on Export Points ?

Thanks

3
Bug Reports / Problem with gray markers
« on: June 28, 2013, 04:17:08 PM »
Hi,
I have a problem with markers.
When I put all the markers on the pictures there is still the identified markers that are not in the picture.
The icon of the marker is also different and I can not delete it..

What are gray markers?

Guillaume

4
Python and Java API / Add only one picture in my chunk
« on: May 14, 2013, 12:42:36 PM »
Hi,
I use PYTHON API for import my pictures in my chunk but for all picture add there are two pictures...

My Code :
Code: [Select]
workspace = PhotoScan.app.document
my_chunk = PhotoScan.Chunk()
my_chunk.label = "My Chunk"
my_chunk.cameras.add(photo_path+"R0010414.JPG")
workspace.chunks.add(my_chunk)

In my chunk:
"R0010414.JPG" : (3956x2756) it's ok :)
"R0010414.JPG [2]" : (640x480) it's a thumbnail picture... :(

How can I import only R0010414.JPG ?

Pages: [1]