I'm new in python. I try to make a button in Maya that increments the value of the crease edges. Each time I click on it I want to make +1 to the crease value.
I tried this :
def crease(ignore):
value=+1
newvalue = value
for i in value(int(newvalue)+1):
maya.cmds.polyCrease(i)
But it doesn't work. If somebody could help I really appreciate any help you can provide