To set a matrix plug in the API you use MFnMatrixData.  If you want to set
the default value, you use mAttr.setDefault when you create the attribute.

On Fri, Apr 23, 2010 at 4:39 AM, matthew evans
<[email protected]>wrote:

> if i was to create an output matrix variable for example:
>
> mAttr=om.MFnMatrixAttribute()
>
> WorldNode.newMatrix=mAttr.create("OutnewMatrix","newMatrix",om.MFnMatrixAttribute.kFloat)
>
> how would i make worldNode.newMatrix equal a predefined matrix? such
> as:
> matrix=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]
>
> WorldNode.newMatrix=matrix
>
> so that i can plug the newMatrix into a decompose matrix node?
>
> --
> http://groups.google.com/group/python_inside_maya

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

Reply via email to