From 09b37b93f0dab350fa4522b7d4b88cbc3a5ab564 Mon Sep 17 00:00:00 2001 From: Michi Inoue Date: Tue, 3 Mar 2020 18:29:45 +0000 Subject: [PATCH] Create Display.py --- module/Common/Display.py | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 module/Common/Display.py diff --git a/module/Common/Display.py b/module/Common/Display.py new file mode 100644 index 0000000..2c2d4b1 --- /dev/null +++ b/module/Common/Display.py @@ -0,0 +1,51 @@ +from maya import cmds +from maya import mel + + +commandDict = {} + + +def displayFaceNormals(): + cmds.ToggleFaceNormals() +commandDict['displayFaceNormals'] = "paintFXtoCurve.png" + + +def displayVertexNormals(): + cmds.ToggleVertexNormalDisplay() +commandDict['displayVertexNormals'] = "paintFXtoCurve.png" + + +def displayTangents(): + cmds.ToggleTangentDisplay() +commandDict['displayTangents'] = "paintFXtoCurve.png" + + +def changeNormalSize(): + cmds.ChangeNormalSize() +commandDict['changeNormalSize'] = "paintFXtoCurve.png" + + +# ---------------- + + +def displayBorderEdges(): + cmds.ToggleBorderEdges() +commandDict['displayBorderEdges'] = "paintFXtoCurve.png" + + +def displayCreaseEdges(): + cmds.ToggleCreaseEdges() +commandDict['displayCreaseEdges'] = "paintFXtoCurve.png" + + +def displayTextureBorderEdges(): + cmds.ToggleTextureBorderEdges() +commandDict['displayTextureBorderEdges'] = "paintFXtoCurve.png" + + +def changeEdgeWidth(): + cmds.ChangeEdgeWidth() +commandDict['changeEdgeWidth'] = "paintFXtoCurve.png" + + +# ----------------