diff --git a/openpype/hosts/maya/plugins/publish/extract_arnold_scene_source.py b/openpype/hosts/maya/plugins/publish/extract_arnold_scene_source.py index 7348c2db4d..63e6ff0f36 100644 --- a/openpype/hosts/maya/plugins/publish/extract_arnold_scene_source.py +++ b/openpype/hosts/maya/plugins/publish/extract_arnold_scene_source.py @@ -124,6 +124,13 @@ class ExtractArnoldSceneSource(publish.Extractor): if cmds.nodeType(node) != "transform": continue + # Only interested in transforms with shapes. + shapes = cmds.listRelatives( + node, shapes=True, fullPath=True + ) or [] + if not shapes: + continue + parent = cmds.listRelatives( node, parent=True, fullPath=True )[0]