How can I set double array attribute using pymel ? When I do this:

import pymel as pm
pm.addAttr('pPlane1',ln='test',dt='doubleArray')
pm.setAttr('pPlane1.test',[1,2,3,4])

I get this error:

# Error: Too much data was provided. The last 0 elements were not
used.

but when I set attribute using only three values:

pm.setAttr('pPlane1.test',[1,2,3,4])

I don't get error , but :

pm.SCENE.pPlane1.test.get()

show me only one value:

# Result: [1.0]

I tried this also by adding type='doubleArray' but I can't get this
working.



Marcin
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to