>
> Sure. We can all help each other out with specific problems. But it is
> likely you will have fewer situations where you will be stuck on
> interpreting/debugging the existing code, if you improve on foundations. As
> others have mentioned, since the Python and MEL command usage mirrors each
> other, for the most part, it should end up being mostly transparent aside
> from a few MEL syntax basics.
>

Yes, you should get the idea of mel syntax very quickly as it is somewhat
simple. The thing that I overlooked and got trouble with when first
encountered, was the fact that mel passes arays by reference:
http://help.autodesk.com/view/MAYAUL/2015/ENU/?guid=Advanced_Array_arguments_are_passed_by_reference
It can bite you if you don't know, but you can get advantage of it ifyou
want to "return" more than one result from a procedure...

One other thing is that from mel you don't have access to the api, whereas
you can have access to it (there are even 2 python apis) from python, but
it may be for when you are more comfortable with maya itself...

2015-06-14 3:04 GMT+02:00 Justin Israel <[email protected]>:

>
>
> On Sun, Jun 14, 2015 at 7:19 AM Crest Christopher <
> [email protected]> wrote:
>
>> In other words, I can do all that I want to do or have plans to do with
>> MEL, in Python.
>>
>
> Pretty much, yes.
>
>
>> Alright, I'll devote time to Python, I hope all works out.  Problem is, I
>> know a little JS, still learning and I have some problems debugging MEL,
>> what do I do, bug you guys for help ? :-)
>>
>
> Sure. We can all help each other out with specific problems. But it is
> likely you will have fewer situations where you will be stuck on
> interpreting/debugging the existing code, if you improve on foundations. As
> others have mentioned, since the Python and MEL command usage mirrors each
> other, for the most part, it should end up being mostly transparent aside
> from a few MEL syntax basics.
>
>
>>
>>
>>   Nicolas Combecave <[email protected]>
>>  Saturday, June 13, 2015 3:07 PM
>>
>> I'm 200% with Justin on this one!
>>
>> If you learn maya python, you'll learn the maya guts as well as if you
>> learn mel, plus a lot that will be usefull outside of maya. And applying
>> this knowledge to debug/modify a mel script should be trivial, as maya
>> python is really 99% a one to one copy of all mel commands.
>>
>> Don't attach yourself the mel boulder to your ankle, especially if you
>> start programming maya, you'll regret it later (as we do in our studio,
>> because of late adoption, you know, lack of time in pre-production, etc,
>> etc...)
>>
>> This is really my 2cts, but if you poll this subject, I think you should
>> end up with the 'go python' winning...
>>
>> Cheers
>>
>> Nicolas
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/python_inside_maya/Ns8YMlWFwyk/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAD65uqnw40EGrvjy4NVg3neADj5-dmaM11xzi54PBnK9hmnOjw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAD65uqnw40EGrvjy4NVg3neADj5-dmaM11xzi54PBnK9hmnOjw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>   Justin Israel <[email protected]>
>>  Saturday, June 13, 2015 5:38 AM
>>
>>
>>  On Sat, 13 Jun 2015 4:21 PM Crest Christopher <
>> [email protected]> wrote:
>>
>> I know, I've been told this, then on the other hand, I've been told,
>> learn both.  It's a tug-of-war !
>>
>> MEL isn't useful outside of Maya. You can use Python beyond just the Maya
>> platform. And if for some reason Maya's python commands API really isn't
>> fast enough for a given problem, then you can move to a C++ plugin.
>>
>>  <img src="
>> https://mail.google.com/mail/?ui=2&ik=a7eb1b7682&attid=0.1.1&th=14deb2678fd6616f&view=fimg&rm=14deb2678fd6616f&sz=w1600-h1000&attbid=ANGjdJ_LUgFom3LQVbdV3uti_asHljmHPjtKf0f0KRxilYjbHWAH6Ul3xUZPOZsqjPpkAi7TXxYjO4IlWl_Kmp9M9OZFHZMrpSAAqOjPHWO_9gmQCrXrEFPH0DZraaE&disp=emb&zw
>> ">
>>
>> Justin Israel <[email protected]>
>>
>> Friday, June 12, 2015 11:44 PM
>>
>>
>>  Really, there is no reason to learn and study MEL. Just do python
>> training.
>>
>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/python_inside_maya/Ns8YMlWFwyk/unsubscribe
>> .
>>
>>
>>  To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0hoRf0HHwQWiPBYGf6uVZEGvPxsVSn1VSmGhR76%2B0%2B4g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0hoRf0HHwQWiPBYGf6uVZEGvPxsVSn1VSmGhR76%2B0%2B4g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>   <img src="
>> https://mail.google.com/mail/?ui=2&ik=a7eb1b7682&attid=0.1.1&th=14deb2678fd6616f&view=fimg&rm=14deb2678fd6616f&sz=w1600-h1000&attbid=ANGjdJ8hZc16CyWlKxU5g-hTtnBOLjv-bkcceQ1pf0AanMmXPbstGaazevPmLlz9Bo-7eZUhrOiTLXvbdbVNWk0vvS0XYAOEzuRmXFJOo1I_f8POfiOY3c9geiZEvRM&disp=emb&zw
>> ">
>>
>> Justin Israel <[email protected]>
>>
>> Friday, June 12, 2015 9:26 PM
>>
>>
>>
>> On Sat, 13 Jun 2015 1:21 PM Christopher. <[email protected]>
>> wrote:
>>
>>  I have documentation on MEL.  Did you read this book ? The book comes
>> across as though you are calling me stupid ? ;-) A ten plus year old book
>> still costs almost $60, and the kindle is the same.  I suppose I should
>> know a little C++ if I get this book.
>>
>>
>> I highly doubt Marcus was trying to insult your intelligence by
>> suggesting a book. He is one of the most helpful members of this group.
>>
>> The intent, as I saw it, was to offer you ways to improve your foundation
>> in programming. We are all happy to help with questions, but we can't
>> always teach from scratch when there are tons of resources to get a
>> baseline in Mel or python. But if you ask very clear detailed questions,
>> you will get clear and detailed answers (hopefully)
>>
>>
>> In the meantime, instead of me waiting to buy a book, if I buy the book,
>> someone willing to give me a clue on what I'm doing wrong, yes I may ask
>> novice questions, I do appreciate the help.
>>
>> On Friday, June 12, 2015 at 12:53:21 PM UTC-4, Marcus Ottosson wrote:
>>
>>
>>   The american site seems to have more favourable reviews.
>>
>> - http://amzn.com/1558608354
>>
>>
>>
>>  On 12 June 2015 at 17:51, Marcus Ottosson <[email protected]> wrote:
>>
>>    I’d suggest you have a glance at this book, it covers both basics and
>> advanced use of MEL, and is a good introduction to programming with Maya
>> overall.
>>
>>
>> http://www.amazon.co.uk/Complete-Maya-Programming-Extensive-Kaufmann/dp/1558608354
>>
>> ​
>>
>>
>>
>>
>> On 12 June 2015 at 17:34, Christopher. <[email protected]> wrote:
>>
>>
>>  Do you not make objects as strings in MEL ? For example;
>>
>> string $one = "pSphere1";
>>
>> string $two = "pCube1";
>>
>> Or just alone var as such; $one = "pSphere1";
>>
>>
>>  --
>>
>>
>>  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 [email protected].
>>
>>
>>  To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/47c38324-8ffc-4719-a06a-d0bcdbfbdf58%40googlegroups.com
>> <https://groups.google.com/d/msgid/python_inside_maya/47c38324-8ffc-4719-a06a-d0bcdbfbdf58%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>    --
>>
>> *Marcus Ottosson*
>> [email protected]
>>
>>
>>   --
>>
>> *Marcus Ottosson*
>> [email protected]
>>
>>
>>
>> --
>> 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 [email protected].
>>
>>
>>  To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/8653eb54-3b48-46a7-83c9-527c8c67385c%40googlegroups.com
>> <https://groups.google.com/d/msgid/python_inside_maya/8653eb54-3b48-46a7-83c9-527c8c67385c%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 a topic in the
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/python_inside_maya/Ns8YMlWFwyk/unsubscribe
>> .
>>
>>
>>  To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1QvFq_Y2VAKyqXWjiOaczfZ%2Bbq55L9YWgyRmiQtzDE6Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1QvFq_Y2VAKyqXWjiOaczfZ%2Bbq55L9YWgyRmiQtzDE6Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>   <img src="
>> https://mail.google.com/mail/?ui=2&ik=a7eb1b7682&attid=0.1.2&th=14deb2678fd6616f&view=fimg&rm=14deb2678fd6616f&sz=w1600-h1000&attbid=ANGjdJ82f9wWyO9SkLf_BYT9nUQAetj91kN3irCTPpclmaU7ji85Wvw37-pUpFaxD4KG9tE1lWQ17QdhD3z3M0-MFZcKgzz5RM-Gl8kf9rN-xJsnoJIBCzF9pS6Gcok&disp=emb&zw
>> ">
>>
>> Christopher. <[email protected]>
>>
>> Friday, June 12, 2015 9:21 PM
>>
>>
>>  I have documentation on MEL.  Did you read this book ? The book comes
>> across as though you are calling me stupid ? ;-) A ten plus year old book
>> still costs almost $60, and the kindle is the same.  I suppose I should
>> know a little C++ if I get this book.
>>
>>
>>  In the meantime, instead of me waiting to buy a book, if I buy the
>> book, someone willing to give me a clue on what I'm doing wrong, yes I may
>> ask novice questions, I do appreciate the help.
>>
>> On Friday, June 12, 2015 at 12:53:21 PM UTC-4, Marcus Ottosson wrote:
>>
>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/python_inside_maya/Ns8YMlWFwyk/unsubscribe
>> .
>>
>>
>>  To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/8653eb54-3b48-46a7-83c9-527c8c67385c%40googlegroups.com
>> <https://groups.google.com/d/msgid/python_inside_maya/8653eb54-3b48-46a7-83c9-527c8c67385c%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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/557BAFBF.1070608%40gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/557BAFBF.1070608%40gmail.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 a topic in the
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/python_inside_maya/Ns8YMlWFwyk/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0LqD-ki6uobLeT6TMdfk4ppz56KDq-DGpvuwYfO4gt8A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0LqD-ki6uobLeT6TMdfk4ppz56KDq-DGpvuwYfO4gt8A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>   Justin Israel <[email protected]>
>>  Friday, June 12, 2015 11:44 PM
>>
>> Really, there is no reason to learn and study MEL. Just do python
>> training.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/python_inside_maya/Ns8YMlWFwyk/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0hoRf0HHwQWiPBYGf6uVZEGvPxsVSn1VSmGhR76%2B0%2B4g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0hoRf0HHwQWiPBYGf6uVZEGvPxsVSn1VSmGhR76%2B0%2B4g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>   Crest Christopher <[email protected]>
>>  Friday, June 12, 2015 11:33 PM
>> It's that, I have a few MEL ebook style documents, they appear
>> informative, although I haven't read them cover to cover, what may the book
>> have that these documents don't have, besides a price tag.
>>
>> Justin Israel wrote:
>>   Justin Israel <[email protected]>
>>  Friday, June 12, 2015 9:26 PM
>>
>>
>>  On Sat, 13 Jun 2015 1:21 PM Christopher. <[email protected]>
>> wrote:
>>
>> I have documentation on MEL.  Did you read this book ? The book comes
>> across as though you are calling me stupid ? ;-) A ten plus year old book
>> still costs almost $60, and the kindle is the same.  I suppose I should
>> know a little C++ if I get this book.
>>
>> I highly doubt Marcus was trying to insult your intelligence by
>> suggesting a book. He is one of the most helpful members of this group.
>>
>> The intent, as I saw it, was to offer you ways to improve your foundation
>> in programming. We are all happy to help with questions, but we can't
>> always teach from scratch when there are tons of resources to get a
>> baseline in Mel or python. But if you ask very clear detailed questions,
>> you will get clear and detailed answers (hopefully)
>>
>>
>> In the meantime, instead of me waiting to buy a book, if I buy the book,
>> someone willing to give me a clue on what I'm doing wrong, yes I may ask
>> novice questions, I do appreciate the help.
>>
>> On Friday, June 12, 2015 at 12:53:21 PM UTC-4, Marcus Ottosson wrote:
>>
>> The american site seems to have more favourable reviews.
>>
>> - http://amzn.com/1558608354
>>
>>
>>  On 12 June 2015 at 17:51, Marcus Ottosson <[email protected]> wrote:
>>
>>
>>  I’d suggest you have a glance at this book, it covers both basics and
>> advanced use of MEL, and is a good introduction to programming with Maya
>> overall.
>>
>>
>> http://www.amazon.co.uk/Complete-Maya-Programming-Extensive-Kaufmann/dp/1558608354
>>
>> ​
>>
>>
>>
>> On 12 June 2015 at 17:34, Christopher. <[email protected]> wrote:
>>
>>  Do you not make objects as strings in MEL ? For example;
>>
>> string $one = "pSphere1";
>>
>> string $two = "pCube1";
>>
>> Or just alone var as such; $one = "pSphere1";
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/47c38324-8ffc-4719-a06a-d0bcdbfbdf58%40googlegroups.com
>> <https://groups.google.com/d/msgid/python_inside_maya/47c38324-8ffc-4719-a06a-d0bcdbfbdf58%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>>  --
>>
>> *Marcus Ottosson*
>> [email protected]
>>
>>
>>
>> --
>>
>> *Marcus Ottosson*
>> [email protected]
>>
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/8653eb54-3b48-46a7-83c9-527c8c67385c%40googlegroups.com
>> <https://groups.google.com/d/msgid/python_inside_maya/8653eb54-3b48-46a7-83c9-527c8c67385c%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 a topic in the
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/python_inside_maya/Ns8YMlWFwyk/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1QvFq_Y2VAKyqXWjiOaczfZ%2Bbq55L9YWgyRmiQtzDE6Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1QvFq_Y2VAKyqXWjiOaczfZ%2Bbq55L9YWgyRmiQtzDE6Q%40mail.gmail.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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/557C821C.5020000%40gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/557C821C.5020000%40gmail.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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0xUjzEPnX7i%3DpFKW8Wjdxe5G5SArzxy_pRcZQDBMMtwg%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0xUjzEPnX7i%3DpFKW8Wjdxe5G5SArzxy_pRcZQDBMMtwg%40mail.gmail.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAD65uq%3DbJDn60J4542cUaWk2BSEBxynxB_V6Y3boYhaHYNcxaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to