you can do this with metaclasses. for an example, check out the ui.AETemplate class in pymel 1.0.2
-chad On Apr 27, 2010, at 1:18 PM, shawnpatapoff wrote: > This may be a more basic question. > > I have a class being created and I'm testing the arguments when the > class is called. Within the class can I error out if the types are > wrong and prevent the class from returning? How do you guys handle > this? > > Cheers, > Shawn > > -- > http://groups.google.com/group/python_inside_maya -- http://groups.google.com/group/python_inside_maya
