Skip to content

Commit

Permalink
Add Edit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
minoue committed Oct 13, 2020
1 parent 53e4b86 commit a744c46
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions module/Common/Edit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
from maya import cmds
from maya import mel


commandDict = {}


def deleteHistory():
cmds.DeleteHistory()
commandDict['deleteHistory'] = 'menuIconEdit.png'


def deleteNonDeformerHistory():
cmds.BakeNonDefHistory()
commandDict['deleteNonDeformerHistory'] = 'menuIconEdit.png'


def deleteAllHistory():
cmds.DeleteAllHistory()
commandDict['deleteAllHistory'] = 'menuIconEdit.png'


def deleteAllNonDeformerHistory():
cmds.BakeAllNonDefHistory()
commandDict['deleteAllNonDeformerHistory'] = 'menuIconEdit.png'


def duplicate():
cmds.Duplicate()
commandDict['duplicate'] = 'menuIconEdit.png'


def duplicateSpecial():
cmds.DuplicateSpecial()
commandDict['duplicateSpecial'] = 'menuIconEdit.png'


def duplicateSpecialOptions():
cmds.DuplicateSpecialOptions()
commandDict['duplicateSpecialOptions'] = 'menuIconEdit.png'

0 comments on commit a744c46

Please sign in to comment.