Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maya Tools - Marker/Bundle Selection Toggle tool finds connection to MayaNodeEditorSavedTabsInfo #109

Closed
david-cattermole opened this issue May 31, 2019 · 1 comment
Assignees
Labels
bug maya tool A user tool inside Maya. python api The Python API for mmSolver
Milestone

Comments

@david-cattermole
Copy link
Owner

Problem

When toggling the markers/bundle selection the "MayaNodeEditorSavedTabsInfo" is incorrectly detected as a Marker node, and causes an error.

Expected behavior:
Toggling the selection between Markers and Bundles should not error, even if a "MayaNodeEditorSavedTabsInfo" node is connected.

Actual behavior:
When toggling the selection of Markers/Bundles, when a connection to a "MayaNodeEditorSavedTabsInfo" node exists, an error will be raised.

The error:

import mmSolver.tools.selection.tools as selection_tool;selection_tool.swap_between_selected_markers_and_bundles();
# Error: mmSolver._api.marker : Given Marker node name is invalid: name=u'MayaNodeEditorSavedTabsInfo' #
# Error: (kFailure): NULL object returned
# Traceback (most recent call last):
#   File "<maya console>", line 1, in <module>
#   File "/home/user/maya/2017/modules/mayaMatchMoveSolver-0.2.3-maya2017-linux/python/mmSolver/tools/selection/tools.py", line 37, in swap_between_selected_markers_and_bundles
#     mkr_nodes = convert_selection.get_markers_from_bundles(node_filtered['bundle'])
#   File "/home/user/maya/2017/modules/mayaMatchMoveSolver-0.2.3-maya2017-linux/python/mmSolver/tools/selection/convert.py", line 43, in get_markers_from_bundles
#     mkr_list = bnd.get_marker_list()
#   File "/home/user/maya/2017/modules/mayaMatchMoveSolver-0.2.3-maya2017-linux/python/mmSolver/_api/bundle.py", line 235, in get_marker_list
#     mkr = mmSolver._api.marker.Marker(node=conn)
#   File "/home/user/maya/2017/modules/mayaMatchMoveSolver-0.2.3-maya2017-linux/python/mmSolver/_api/marker.py", line 64, in __init__
#     raise e
# RuntimeError: (kFailure): NULL object returned # 

Versions

mmSolver v0.2.3 (and probably all v0.2.x versions at least).

@david-cattermole david-cattermole added bug maya tool A user tool inside Maya. python api The Python API for mmSolver labels May 31, 2019
@david-cattermole david-cattermole added this to the v0.3.0 milestone May 31, 2019
@david-cattermole david-cattermole self-assigned this May 31, 2019
@david-cattermole
Copy link
Owner Author

We have fixed this problem by testing for exactly the node type of a Marker or Bundle when querying connections.

This is merged into the master branch, and may be back-ported to the v0.2.x if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug maya tool A user tool inside Maya. python api The Python API for mmSolver
Projects
None yet
Development

No branches or pull requests

1 participant