david-cattermole / mayaMatchMoveSolver

A Bundle Adjustment solver for MatchMove related tasks.
https://david-cattermole.github.io/mayaMatchMoveSolver/
Other
101 stars 29 forks source link

Maya Tool - Unlinking a Bundle from a Marker errors #241

Closed david-cattermole closed 2 years ago

david-cattermole commented 2 years ago

Problem

When trying to unlink a Marker and Bundle link, an error is raised.

Expected behavior: No error should occur.

Actual behavior: An error occurs:

# Error: 'NoneType' object has no attribute 'get_node'
# Traceback (most recent call last):
#   File "<maya console>", line 2, in <module>
#   File "C:\Users\user\Documents\maya\2022\modules\mayaMatchMoveSolver-0.4.0.alpha4-maya2022-win64\python\mmSolver\tools\linkmarkerbundle\tool.py", line 70, in unlink_marker_bundle
#     mkr.set_bundle(None)
#   File "C:\Users\user\Documents\maya\2022\modules\mayaMatchMoveSolver-0.4.0.alpha4-maya2022-win64\python\mmSolver\_api\marker.py", line 1015, in set_bundle
#     self._unlink_from_bundle()
#   File "C:\Users\user\Documents\maya\2022\modules\mayaMatchMoveSolver-0.4.0.alpha4-maya2022-win64\python\mmSolver\_api\marker.py", line 1072, in _unlink_from_bundle
#     bnd_node = bnd.get_node()
# AttributeError: 'NoneType' object has no attribute 'get_node' # 

Steps to Reproduce

The exact steps are unknown, but try the following...

  1. Select a Marker

  2. Run "unlink" tool, once or more times.

  3. Select a Bundle

  4. Run "unlink" tool, once or more times.

Software Versions

david-cattermole commented 2 years ago

This is now fixed and will be released in v0.4.0 and v0.4.0-alpha6.