On Wed, Jul 27, 2016 at 10:39 AM likage <dissidia....@gmail.com> wrote:
> I do not have any code to show. This is something that I have copied and > paste somewhere.. > > But if say I manage to have some values and I set a variable as 'test. > asMPoint()', am I correct to say that it will try to read in 3 values and > it will be using the class Point, asMPoint function? > > And hence my return output will be a MPoint? > Yes exactly. That was the missing bit. You weren't showing the part that you just described. When you call asMPoint(), you will be creating an instance of MPoint from your instance variables x, y, and z and returning it. It should be pretty obviously what is being called, when you actually call it directly. > > Pardon me that this is a very bad example.. > > -- > 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/34540270-497b-4e5c-be25-cd84dfd16b96%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/34540270-497b-4e5c-be25-cd84dfd16b96%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/CAPGFgA1jkoxMr4cX5NduQc0WvxQgNwapeMzMv6vD3j3ES10paA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.