Forum

Author Topic: markers.position no longer working?  (Read 2400 times)

stephan

  • Full Member
  • ***
  • Posts: 129
    • View Profile
markers.position no longer working?
« on: July 01, 2016, 01:02:26 AM »
Hi,

This piece of code is causing trouble for some reason:

center1 = (chunk.markers[cam1].position + chunk.markers[cam2].position) / 2

I get this error:

TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'

This seems to be a new error as I didn't have it before updating, does anyone else have this?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14927
    • View Profile
Re: markers.position no longer working?
« Reply #1 on: July 01, 2016, 11:12:12 AM »
Hello stephan,

Is it possible that both markers that you are using are not defined in space?
Best regards,
Alexey Pasumansky,
Agisoft LLC

stephan

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Re: markers.position no longer working?
« Reply #2 on: July 12, 2016, 03:55:27 PM »
Hello stephan,

Is it possible that both markers that you are using are not defined in space?

Yep that was it  :o