From 54af7a82d5142d3f52575d7e86be3a827c450404 Mon Sep 17 00:00:00 2001 From: Toke Stuart Jepsen Date: Fri, 17 Mar 2023 07:49:48 +0000 Subject: [PATCH] attr > attribute --- .../maya/tools/mayalookassigner/arnold_standin.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py b/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py index d4f93aeca6..4f85d15108 100644 --- a/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py +++ b/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py @@ -109,13 +109,13 @@ def get_standin_path(node): return path -def shading_engine_assignments(shading_engine, attr, nodes, assignments): +def shading_engine_assignments(shading_engine, attribute, nodes, assignments): shader_inputs = cmds.listConnections( - shading_engine + "." + attr, source=True) + shading_engine + "." + attribute, source=True) if not shader_inputs: log.info( "Shading engine \"{}\" missing input \"{}\"".format( - shading_engine, attr + shading_engine, attribute ) ) @@ -128,7 +128,7 @@ def shading_engine_assignments(shading_engine, attr, nodes, assignments): "{}").format(node)) nodes[i] = node.split(".")[0] - shader_type = "shader" if attr == "surfaceShader" else "disp_map" + shader_type = "shader" if attribute == "surfaceShader" else "disp_map" assignment = "{}='{}'".format(shader_type, shader_inputs[0]) for node in nodes: assignments[node].append(assignment) @@ -190,13 +190,13 @@ def assign_look(standin, subset): shading_engine_assignments( shading_engine=edit["shader"], - attr="surfaceShader", + attribute="surfaceShader", nodes=edit["nodes"], assignments=node_assignments ) shading_engine_assignments( shading_engine=edit["shader"], - attr="displacementShader", + attribute="displacementShader", nodes=edit["nodes"], assignments=node_assignments )