Forum

Author Topic: How to report progress from script that runs as NetworkTask?  (Read 3217 times)

smihic

  • Newbie
  • *
  • Posts: 31
    • View Profile
Hi,
  is there a way to report progress from script that runs as NetworkTask?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14843
    • View Profile
Re: How to report progress from script that runs as NetworkTask?
« Reply #1 on: June 29, 2016, 02:50:36 PM »
Hello smihic,

The following code should connect to the server and print the progress for the first batch job in the list (active task):
Code: [Select]
client = PhotoScan.NetworkClient()
client.connect('127.0.0.2')
batch = client.batchList()[0]
print(batch["task"]["progress"])
Best regards,
Alexey Pasumansky,
Agisoft LLC

smihic

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: How to report progress from script that runs as NetworkTask?
« Reply #2 on: June 29, 2016, 07:31:49 PM »
Hi,
thank you, but this not what I need. I want to report progress from script that is running as RunScript task so that user can monitor progress of script execution. Is there a way to do this?

SamT

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: How to report progress from script that runs as NetworkTask?
« Reply #3 on: July 04, 2020, 01:04:39 AM »
This would be a handy feature!