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. -~----------~----~----~----~------~----~------~--~---
