im not sure in python 3+

but in 2.6 which i preferably use, the answer is no. to create a class of
type object or type, you actually have to pass in the object param.

matty


On Fri, Jul 29, 2011 at 6:20 PM, PixelMuncher <[email protected]> wrote:

> Justin pretty much summed it up.
> I'm not a professional coder, but I write a lot of Maya tools for
> myself.
> I started w/Mel, then checked out Python, which has become my favorite
> language.
> I haven't used classes, and want to find out about what I'm missing.
> I understand your point of view Alexander - that using classes could
> be considered superfluous for my needs, but I want to see how they
> work and if I can see any advantage to using them in my coding.
> I appreciate Justin's comment that they can used simply as a way to
> keep code organized - I have done similar type of coding (using
> methods and attributes) with Actionscript, and this worked well for me
> in the past.
> I used pymel for awhile, but found that, as a one person shop, it was
> too hard to keep track of what is pymel vs. what is python, so for now
> I'm sticking to python.
>
> Also, regarding the use of the object param to create a new style
> class - I read up on that.  Is it correct that that is now optional
> and all classes are automatically cast as they type 'object'?
>
> Thanks for the help and feedback.
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to