Forum

Author Topic: making Python work on Win 7 64bit  (Read 9327 times)

ArmOne

  • Newbie
  • *
  • Posts: 2
    • View Profile
making Python work on Win 7 64bit
« on: December 25, 2011, 07:07:14 PM »
Hello

I tried the 0.8.4 demo version of photoscan and I do not seem to be able to make work python script that comes in the documentation:

import PhotoScan
doc = PhotoScan.app.document
doc.activeChunk.alignPhotos(accuracy = ’high’, preselection = ’generic’)
doc.activeChunk.buildModel(quality=’medium’, object=’arbitrary’, geometry=’smooth’, faces=200000)
doc.activeChunk.buildTexture(mapping=’generic’, blending=’average’, width=2048, height=2048)
doc.save(’test2’)

it does nothing and when I try the lines by itself I get error
any idea how to make it work?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: making Python work on Win 7 64bit
« Reply #1 on: December 25, 2011, 09:01:36 PM »
Hello ArmOne,

Could you please check if this script works with quotes-symbol instead of apostrophe.

Actually it should work with apostrophes too, if input manually instead of copying from pdf.
We'll check if the apostrophes are converted into inproper symbols in the documentation.
« Last Edit: December 25, 2011, 09:06:52 PM by Alexey Pasumansky »
Best regards,
Alexey Pasumansky,
Agisoft LLC

ArmOne

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: making Python work on Win 7 64bit
« Reply #2 on: December 25, 2011, 11:20:47 PM »
oh now it works!