Forum

Author Topic: scipt disable close cams not working with current version  (Read 3413 times)

frank.stremke

  • Full Member
  • ***
  • Posts: 206
    • View Profile
scipt disable close cams not working with current version
« on: February 20, 2015, 11:28:09 AM »
hi all
iam have just realised that the script disable close cams seems not to work with the current edition of photoscan
i get an error code  in the console:
Traceback (most recent call last):
  File "E:/PS101_disable_close_cams.py", line 5, in <module>
    chunk = doc.activeChunk
AttributeError: 'PhotoScan.Document' object has no attribute 'activeChunk'

anyone have an idea how to solve this?
thanks
frank

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14103
    • View Profile
Re: scipt disable close cams not working with current version
« Reply #1 on: February 20, 2015, 11:33:00 AM »
Hello Frank,

changing line 5 to
Code: [Select]
chunk = doc.chunkshould make script work.
Best regards,
Alexey Pasumansky,
Agisoft LLC

frank.stremke

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: scipt disable close cams not working with current version
« Reply #2 on: February 20, 2015, 11:39:56 AM »
hi alexey
thank you
still not working
:-(

line 5, in <module>
    chunk = doc.Chunk
AttributeError: 'PhotoScan.Document' object has no attribute 'Chunk'
>>>
frank

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14103
    • View Profile
Re: scipt disable close cams not working with current version
« Reply #3 on: February 20, 2015, 11:44:03 AM »
Hello Frank,

Python is case sensitive, so doc.chunk is very different from doc.Chunk ;)
Best regards,
Alexey Pasumansky,
Agisoft LLC

frank.stremke

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: scipt disable close cams not working with current version
« Reply #4 on: February 20, 2015, 11:49:08 AM »
thank you
never been much of a programmer :-)
works now!
frank