On Wed, 27 Jul 2016, 4:51 AM likage <dissidia....@gmail.com> wrote:

> Why do you thing it would be returning a list vs a dict vs other? And I
>> don't mean these questions in a condescending way. I think it would be good
>> to hear your thought process on how you view the way a class works. Then we
>> can address the specifics. What do you expect to get back when you
>> construct a Point object in different ways? How would you expect to see a
>> list vs a dict result? Given that your example never calls any of your 4
>> extra methods, how do you envision them being called implicitly?
>
>
> I was expecting it to return it in terms that I understand... Truth be
> told, I do not have the slightest idea of what is being returned when using
> maya api as I have no knowledge in the api area, a total noob here..
> In python term, for example, if I am using [], I know that if I type in
> type(), it will give me <type 'list'> as the result, returning it as list.
>
> Correct me if I am wrong but can I assume that in api term, the methods
> that I am using, for example om.MPoint, om.MFloatVector, the 'term' that it
> will return will be called MPoint and MFloatVector? Again, I apologize if
> this sounds like a stupid question
>

This isn't a Maya specific problem though, from what I can see. In your
example you never call any of your 4 specialized methods. You only create a
Point (a custom python class you have defined)  with some params. So let's
pretend that there is no Maya API under the hood here. What I was wondering
is how you figured any of those methods would magically get called for you
without you calling them directly? Or is your test function incomplete and
there is more detail that you have not shared?

-- 
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/f055acff-03c5-4a4d-a22e-47cb9c5c8bd2%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/f055acff-03c5-4a4d-a22e-47cb9c5c8bd2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2KcwRFOJQ5MjMvK_78CPdo3hDV2AFwiwQ_%3DiDNUvaOWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to