hi, can I know how to get the Out value from maya.OpenMaya API correctly ?
for example, I read the Maya document about MColor object, it has a function get() which can output color value to an array.
MColor.Get()
but in python, when I tried to create an array like
array=[0.0,0.0,0.0]
or use maya api
array= MFloatArray(3)
then run the get function from a MColor object
colorObject.get(array)
maya will give me an error
"in method 'MColor_get', argument 2 of type 'float [3]"
it seems that the array object I created is not the correct type for output value to write in, anyone know how to fix this, I know there is a better way in API 2.0 , but I hope to figure out how to solve this kind of output value type for API1.0 in python .