Can someone show a working example of setAttr with matrix attribute in python please?
I have tried various things like (with an without the type="matrix")
cmds.setAttr("pSphere1.myMatrix", 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 , type="matrix")
cmds.setAttr("pSphere1.myMatrix", (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) , type="matrix")
cmds.setAttr("pSphere1.myMatrix",[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [1.0, 2.0, 3.0, 1.0]] , type="matrix")
mat = cmds.getAttr("pSphere1.testMatrix")
cmds.setAttr("pSphere1.myMatrix", mat , type="matrix")
Nothing seems to work! What's going wrong here??
Thanks.