Thanks, that works. do not understand the logic but works
unfortunately then something weird happens with the hotkey script:
import maya.cmds as mc
x = mc.displaySmoothness(po=True,query=True)
print x
if x < 2:
mc.displaySmoothness(po=3)
print ('inside if')
else:
mc.displaySmoothness(po=1)
print ('inside else')
print (mc.displaySmoothness(po=True,query=True))
and this returned the followin:
[1]
inside else
[b][1]
[/b]is not this absolute nonsense? why does not procede with the IF when x is 1?