Annotations?

Annotations?

Anonymous
Not applicable
299 Views
2 Replies
Message 1 of 3

Annotations?

Anonymous
Not applicable
hi..

Does anyone know if there is a way to fetch annotations and their locators/transforms (generated using "Create Annotation...") using the C++ SDK? The .ma file contains:

createNode transform -n "annotationLocator1" -p "|wombat|wombat";
setAttr ".t" -type "double3" 0 -1.6343274400656131e-16 1.2639643549919128 ;
setAttr ".r" -type "double3" 89.999999999999986 0 0 ;
createNode transform -n "annotation1" -p "annotationLocator1";
setAttr ".t" -type "double3" 5.7499198913574219 8.7681881785392761 5.7511868476867667 ;
setAttr ".r" -type "double3" -2.8249000307521008e-30 0 0 ;
setAttr ".s" -type "double3" 1 0.99999999999999978 0.99999999999999978 ;
createNode annotationShape -n "annotationShape1" -p "annotation1";
setAttr -k off ".v";
setAttr ".txt" -type "string" "Jumps...";


thanks
0 Likes
300 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I don't want to get too hung up on annotations if it turns out they aren't accessible. If there is no way to access the annotation metadata, perhaps there is an example showing creation of a custom label node tied to mesh geometry which could be exported to FBX? I've got a workaround for now, but a clean solution is always good.
0 Likes
Message 3 of 3

Anonymous
Not applicable
meh.. think I'll dive into the Maya SDK to see about walking the DAG. This shouldn't be rocket science. Didn't find any examples of this specific to annotations but if knows of one it would be appreciated.
0 Likes