From 3304c270be3127030068c193b40149ed59213bb8 Mon Sep 17 00:00:00 2001 From: David Cattermole Date: Fri, 27 Oct 2023 23:21:59 +1100 Subject: [PATCH] Convert To Marker - Add assertions for camera node existance. Issue #249 --- python/mmSolver/tools/convertmarker/lib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/mmSolver/tools/convertmarker/lib.py b/python/mmSolver/tools/convertmarker/lib.py index 10558eaa..deafaec1 100644 --- a/python/mmSolver/tools/convertmarker/lib.py +++ b/python/mmSolver/tools/convertmarker/lib.py @@ -39,6 +39,8 @@ def convert_nodes_to_marker_data_list(cam_tfm, cam_shp, nodes, start_frame, end_frame): + assert maya.cmds.objExists(cam_tfm) + assert maya.cmds.objExists(cam_shp) # Ensure the plug-in is loaded, to use mmReprojection command. mmapi.load_plugin()