View Full Version : Annotation
07-15-2008, 05:38 PM
Can anyone explain to me the code behind the creation of an annotation node? I have searched up and down the Maya Docs and have come up empty. The code I've found here (little snippets discussing the creation of these nodes) I haven't understood very clearly. It's odd because there is obviously the Create -> Annotation menu option, but I see nothing in the script editor. Would anyone mind filling me in on what is going on? I am attempting to emulate this in code.
Thanks in advance!
07-15-2008, 07:40 PM
Not sure what you are trying to emulate exactly but the mel script which creates the prompt dialog for you to give it a name is annotateNode.mel and the mel script which takes the name you give it and actually creates the node is createAnnotation.mel
Maybe that will get you started?
07-15-2008, 07:49 PM
Ok... so apparently you have to type the command annotate.
This command doesn't seem to be documented in the Mel Command Reference, but it works. If you use a -text flag you can define the text within the annotation note. Make sure to select the item you wish to annotate before you run the command.
annotate -text "Describe the Annotation";
I've noticed a few other commands that don't appear to be documented in the command reference. Very odd and very frustrating when you are attempting to do a simple task, yet you must hunt to figure out the correct manner to perform it!
MEL scripting... you are so fickle :)
07-15-2008, 09:37 PM
Perhaps your documentation install is broken?
Looking back at 8.0, 8.5 and 2008, annotate is in the MEL command reference. At least on my installations.
07-15-2008, 11:27 PM
Yeah perhaps you are right. I'll have to check to see if something is messed up.
Thanks for the help everyone!
07-16-2008, 12:01 AM
Pretty much all commands have documentation but in this case you go through 2 mel scripts...and mel scripts don't usually get documentation.
07-16-2008, 12:01 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.