Change Attribute of selection
#ChngAttrofSel.py import maya.cmds as cmds import functools def createUI(pWindowTitle, pApplyCallback): windowID = 'myWindowID' if cmds.window( windowID, exists=True ): cmds.deleteUI(windowID) cmds.window(windowID, title=pWindowTitle, sizeable=True, resizeToFitChildren=True) cmds.rowColumnLayout(numberOfRows = 2) cmds.text(label = 'Type the Arrtibute to change for the selection and its value') cmds.rowColumnLayout(numberOfColumns = 3, columnWidth = [(1,125),(2,100),(3,80)], columnOffset=[(1,'right',3)]) cmds.text(label = 'Attribute:') targetAttributeField = cmds.textField(...