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

Solver - Error Creating Marker Deviation AnimCurves #224

Closed
david-cattermole opened this issue Jul 4, 2021 · 1 comment
Closed

Solver - Error Creating Marker Deviation AnimCurves #224

david-cattermole opened this issue Jul 4, 2021 · 1 comment
Assignees
Labels
bug maya tool A user tool inside Maya. maya utility Python modules to be used across the mmSolver project. python api The Python API for mmSolver
Milestone

Comments

@david-cattermole
Copy link
Owner

Problem

Sometimes an error is returned after solving. The reproduction steps are unknown, but the traceback is helpful.

Expected behavior:
No error should occur.

Actual behavior:
Script Editor error:

ERROR: [maya] in method 'MDoubleArray_append', argument 2 of type 'double'
# Traceback (most recent call last):
#   File "<maya console>", line 2, in <module>
#   File "/homes/user/maya/2018/modules/mayaMatchMoveSolver-0.3.12-maya2018-linux/python/mmSolver/tools/solver/tool.py", line 127, in run_solve
#     win,
#   File "/homes/user/maya/2018/modules/mayaMatchMoveSolver-0.3.12-maya2018-linux/python/mmSolver/tools/solver/lib/collection.py", line 811, in run_solve_ui
#     info_fn=info_fn,
#   File "/homes/user/maya/2018/modules/mayaMatchMoveSolver-0.3.12-maya2018-linux/python/mmSolver/tools/solver/lib/collection.py", line 672, in execute_collection
#     mmapi.update_deviation_on_markers(mkr_list, solres_list)
#   File "/homes/user/maya/2018/modules/mayaMatchMoveSolver-0.3.12-maya2018-linux/python/mmSolver/_api/marker.py", line 1324, in update_deviation_on_markers
#     mkr.set_deviation(frm_list, dev_list)
#   File "/homes/user/maya/2018/modules/mayaMatchMoveSolver-0.3.12-maya2018-linux/python/mmSolver/_api/marker.py", line 869, in set_deviation
#     anim_type=OpenMayaAnim.MFnAnimCurve.kAnimCurveTU)
#   File "/homes/user/maya/2018/modules/mayaMatchMoveSolver-0.3.12-maya2018-linux/python/mmSolver/utils/animcurve.py", line 103, in create_anim_curve_node_apione
#     value_array.append(value)
# TypeError: in method 'MDoubleArray_append', argument 2 of type 'double'

Steps to Reproduce

The steps to reproduce the problem are unknown.

Software Versions

  • mmSolver version: v0.3.12+
  • Maya version: Maya 2018 (and probably others)
  • Operating System (OS): Reported on Linux (but may happen on Windows too)
@david-cattermole david-cattermole added bug maya tool A user tool inside Maya. python api The Python API for mmSolver maya utility Python modules to be used across the mmSolver project. labels Jul 4, 2021
@david-cattermole david-cattermole added this to the v0.3.14 milestone Jul 4, 2021
@david-cattermole david-cattermole self-assigned this Jul 4, 2021
@david-cattermole
Copy link
Owner Author

A fix has been added to the develop_v0.3.x branch, it will be released in v0.3.14.

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. maya utility Python modules to be used across the mmSolver project. python api The Python API for mmSolver
Projects
None yet
Development

No branches or pull requests

1 participant