Forum

Author Topic: Export for agisoft 1.3.4  (Read 4167 times)

Mullacg

  • Newbie
  • *
  • Posts: 2
    • View Profile
Export for agisoft 1.3.4
« on: January 11, 2018, 05:14:04 AM »
Hi,

I'm trying to run a script in agisoft 1.3.4, that was written for 1.3.0 but keep encountering the error message "Can't Run Script"

My code is below, the script falls over at the .LAS export:

# Export LAS   
path = 'D:/LAS/' + fileName + '.las'
chunk.exportPoints(path, binary=True, projection = proj, precision=6, normals=True, colors=True, format='las', classes = [0,2]) (<-- This is line 34 in my code)

and shows this in the console pane:

2018-01-11 11:59:40 Traceback (most recent call last):
2018-01-11 11:59:40   File "D:/PDM_export17.py", line 34, in <module>
2018-01-11 11:59:40     chunk.exportPoints(path, binary=True, projection = proj, precision=6, normals=True, colors=True, format='las', classes = [0,2])
2018-01-11 11:59:40 TypeError: argument 8 must be PhotoScan.PointsFormat, not str
>>>
« Last Edit: January 11, 2018, 05:23:16 AM by Mullacg »

Paulo

  • Hero Member
  • *****
  • Posts: 1529
    • View Profile
Re: Export for agisoft 1.3.4
« Reply #1 on: January 11, 2018, 06:28:39 AM »
Hi,

for the format parameter, you should use

format=PhotoScan.PointsFormatLAS

Best
Best Regards,
Paul Pelletier,
Surveyor

Mullacg

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Export for agisoft 1.3.4
« Reply #2 on: January 11, 2018, 06:29:55 AM »
Thanks! It's working.