def clearAll(self, *args):
"""clears all the fields"""
fieldNames = ["origTxFFG", "origTyFFG", "origTzFFG", "origSxFFG", "origSyFFG", "origSzFFG", "origRxFFG", "origRyFFG", "origRzFFG", "modTxFFG", "modTyFFG", "modTzFFG", "modRxFFG", "modRyFFG", "modRzFFG", "modSxFFG", "modSyFFG", "modSzFFG", "difTxFFG", "difTyFFG", "difTzFFG", "difRxFFG", "difRyFFG", "difRzFFG", "difSxFFG", "difSyFFG", "difSzFFG"]
cmds.textFieldGrp(self.widgets["baseTFG"], e=True, tx="")
for field in fieldNames:
cmds.floatFieldGrp(self.widgets[field], e=True, v1=0)
cmds.floatFieldGrp(self.widgets["baseFrameFFG"], e=True, v1=0)
cmds.text(self.widgets["doneText"], e=True, l="No Status/All Cleared. Select a base object!", bgc=(.5,.5,.5))
# def restoreBase(self, *args):
# """restores the base obj to the text field"""
# cmds.textFieldGrp(self.widgets["baseTFG"], e=True, tx=self.baseObj)
# cmds.floatFieldGrp(self.widgets["baseFrameFFG"], e=True, v1=self.frame)
评论列表
文章目录