That would be the right way as far as I can see, you can feed the four
float values into a new MQuaternion in your node, or output them, depending
on the intended result.

On Thu, Mar 12, 2015 at 12:31 PM, Rick Silliker <[email protected]>
wrote:

> I could be wrong, but couldn't you just use MFnNumericAttribute and when
> you create it declare a MFnNumericData.k4Double type?
>
> On Thursday, 12 March 2015 05:26:47 UTC-5, yaoys wrote:
>>
>> Hi all,
>> I'm going to add an attribute of MQuaternion type on my custom node, but
>> I don't know how to do it? Could anyone give me any clue? Thank you in
>> advance.
>>
>> Cheers
>> yao
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/9040959f-df23-4549-a940-3de8a664bd73%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/9040959f-df23-4549-a940-3de8a664bd73%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAM33%3Da6u_9_SMWLnqRmj2PBAYmyG2g2zBLNEQSvZ2LeLm2azkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to