Wrapper functions
A very simple example for writing wrapper functions in Python. def polySphere(*args,**kwargs): try: return cmds.polySphere(*args,**kwargs) except: print "Could not create polySphere" print sys.exc_info() polySphere(r=5,sw=20,sh=20)