Skip to content

Commit

Permalink
Create Display.py
Browse files Browse the repository at this point in the history
  • Loading branch information
minoue authored Mar 3, 2020
1 parent a8d66b3 commit 09b37b9
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions module/Common/Display.py
Original file line number Diff line number Diff line change
@@ -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"


# ----------------

0 comments on commit 09b37b9

Please sign in to comment.