From 73260855e043cfc77f60a4ccd53fd5b82ef05ca5 Mon Sep 17 00:00:00 2001 From: aardschok Date: Mon, 18 Dec 2017 09:34:40 +0100 Subject: [PATCH] fix for rig if no input found --- colorbleed/plugins/maya/publish/extract_yeti_rig.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/colorbleed/plugins/maya/publish/extract_yeti_rig.py b/colorbleed/plugins/maya/publish/extract_yeti_rig.py index a086accfe8..5a5a101747 100644 --- a/colorbleed/plugins/maya/publish/extract_yeti_rig.py +++ b/colorbleed/plugins/maya/publish/extract_yeti_rig.py @@ -22,7 +22,11 @@ def disconnected_attributes(settings, members): sources = [i for i in source_nodes if not cmds.referenceQuery(i, isNodeReferenced=True) and i in members] - source = sources[0] + try: + source = sources[0] + except IndexError: + print "source_id:", input["sourceID"] + continue # Get destination shapes (the shapes used as hook up) destination_nodes = lib.lsattr("cbId", input["destinationID"])