Taylor Carrasco wrote:
> Hey Viktoras,
>
> in my program - by the time the mel executes, it has to be a valid mel 
> command. Worse, I am displaying the commands to the user - so I must 
> run a check first on the list of commands before displaying them.
> Why would a command not have an undo? What about error handling for 
> commands with no undo ?
>
you should add "what about commands that can't be undone, like save 
file, delete reference, import some stuff" ? you'll then understand that 
executing the code just to test if syntax is valid is not a very good 
solution.
you should rethink your program logic. presume that code will ALWAYS has 
an error, and provide a way for user to handle that.

-- 
viktoras
www.neglostyti.com


--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to