Forum

Author Topic: saving file with scripts  (Read 3833 times)

lmg

  • Newbie
  • *
  • Posts: 30
    • View Profile
saving file with scripts
« on: September 09, 2014, 09:10:15 AM »
Saving the .psz file in a python script with the commands:

path="C:/Users/Public/Documents/images"
file_name="Acquis_0"
file_n=path+"/"+file_name+".psz"       
doc.save(file_n, compression = 6, absolute_paths = False)        # Saving the project


in the main window of Photoscan the file remains “Untitled”, and if you wish to make any further modification interactively after the python running, you must then search the directory and give manually the file name that what was already specified as “file_n” in the python, to overwrite the same file .psz.
Is there any python command that updates the file name and the working directory of the interactive main photoscan window?



Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14855
    • View Profile
Re: saving file with scripts
« Reply #1 on: September 09, 2014, 11:05:22 AM »
Hello lmg,

And how is doc variable assigned? It should be doc = PhotoScan.app.document if you need to make modifications in the opened project. If you are using doc = PhotoScan.Document() it would be unrelated with the opened project.
Best regards,
Alexey Pasumansky,
Agisoft LLC

jasmine12

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: saving file with scripts
« Reply #2 on: September 23, 2014, 10:37:37 AM »
Auto detected markers are created as not enabled and without coordinates. The enabled and coord properties are not accessible through python until the markers have been assigned some coordinates. It looks like you have to manually enable the markers by checking the boxes, which will initialise them with 0,0,0 before your script will work.
Easy and fast way to get high tech HIT-001 braindumps  certification!  Subscribe for EMC
online training