Features
Support
Community
Downloads
Buy
About
Forum
Home
Search
Login
Register
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
Logfile
« previous
next »
Print
Pages: [
1
]
Author
Topic: Logfile (Read 6350 times)
MMNN
Newbie
Posts: 17
Logfile
«
on:
February 26, 2016, 01:17:12 PM »
Hi,
I'd like to know if it is possible to set the logfile from python.
The logfile can be set in preferences, but I would like a different logfile for each project so I don't get anything mixed up.
Does anyone know how I can set it from python???
Logged
Alexey Pasumansky
Agisoft Technical Support
Hero Member
Posts: 15369
Re: Logfile
«
Reply #1 on:
February 26, 2016, 01:20:50 PM »
Hello MMNN,
You can access to the console pane using
Code:
[Select]
console = PhotoScan.ConsolePane()
contents = console.contents #str type
Then the string containing the console output can be saved to the file. When you start another project you can clear the console (console.clear).
Logged
Best regards,
Alexey Pasumansky,
Agisoft LLC
MMNN
Newbie
Posts: 17
Re: Logfile
«
Reply #2 on:
February 26, 2016, 03:25:07 PM »
Thanks, Alexey, it was just what I needed!
Logged
Print
Pages: [
1
]
« previous
next »
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
Logfile
Features
Support
Community
Downloads
Buy
About
Features
Support
Community
Downloads
Buy
About
Metashape presentation
(PDF, 5 Mb)