EXCELLENT!

This has made it easier to go ahead and learn more on my own instead
of just immediately asking.  I'm seriously thinking of cataloging all
the gems on the path from knowing Mel to learning Python, and putting
together some training on that specific path.  I know I can't be the
only one who would just flip for such a resource...

Thank you! -J.


On Feb 5, 3:06 pm, Dean Edmonds <dean.edmo...@gmail.com> wrote:
> One thing which *is* described in the API docs, albeit in a rather
> confusing fashion, is the difference between an array plug and a plug
> array.
>
> An array plug is a single plug which contains an array of values. You
> set and retrieve all of the array values with a single API call.
>
> A plug array is an array of many plugs, each containing its own value.
> You set and retrieve the values of a plug array using separate API
> calls for each element.
>
> When you used 'setArray(1)' you were telling Maya that your plug was a
> plug array, but when your compute() tried to retrieve the data using
> 'asFloatArray()' it was trying to treat the plug as an array plug.
>
> Just to further confuse things, it is possible to have an array of
> plugs in which each plug contains an entire array of values. That
> would, of course, be an 'array plug array' and, unless you had a
> really good reason to do it, would likely make you unpopular with your
> co-workers. :-)
>
> --
> -deane
--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

Reply via email to