From 90113168cfc129953ab3924d0bd91fbc7d646130 Mon Sep 17 00:00:00 2001 From: Toke Stuart Jepsen Date: Fri, 31 Mar 2023 17:53:32 +0100 Subject: [PATCH] Doc string for shading_engine_assignments --- .../hosts/maya/tools/mayalookassigner/arnold_standin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py b/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py index 08e7746eda..64fab2fa27 100644 --- a/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py +++ b/openpype/hosts/maya/tools/mayalookassigner/arnold_standin.py @@ -79,6 +79,14 @@ def get_nodes_by_id(standin): def shading_engine_assignments(shading_engine, attribute, nodes, assignments): + """Full assignments with shader or disp_map. + + Args: + shading_engine (string): Shading engine for material. + attribute (string): "surfaceShader" or "displacementShader" + nodes: (list): Nodes paths relative to aiStandIn. + assignments (dict): Assignments by nodes. + """ shader_inputs = cmds.listConnections( shading_engine + "." + attribute, source=True )