Re: [Maya2osg-users] Discussion of next changes
Status: Alpha
Brought to you by:
jtaibo
|
From: Jean-Sébastien G. <jea...@cm...> - 2011-05-27 16:57:23
|
Hi Javier,
I've added code to get the notes string from Maya nodes and put it as a
description on the corresponding OSG node. I've also started writing
code to export the custom attributes. It would be more general if I
could export all types of custom attributes (within reason), but I can't
find a way in the MPlug class to find out the type of the attribute
(other than trying asString(), if that fails try asFloat(), if that
fails ...). Do you know of a way?
Also, I see that the notes appear in the API as a custom attribute (and
in the Maya UI when there's something in the Notes field it also shows
up under "Extra Attributes", and disappears if you remove the text in
the Notes field). I think I'll just export them all that way, as custom
attributes, each attribute in a separate description string, with its
name on the first line. That way, the notes will appear too and we'll
have an easy way of knowing that this description contains whatever was
in the Notes field. Any objections?
Thanks in advance,
J-S
--
______________________________________________________
Jean-Sebastien Guay jea...@cm...
http://www.cm-labs.com/
http://whitestar02.dyndns-web.com/
|