How to get an author?

Hello,

I want to get the information in the following image.


Grasshopper.Instances.ActiveCanvas.Document.Author.Name
This script can match only in a new document, I want to get the information of a user opening a grasshopper document.
Does anyone show me the way?

Thanks.

That’s not the author, that’s the viewer. There are no mechanisms to read that.

@Dani_Abalde

I see… Thanks for your reply.

I don’t understand why you had to be dismissive.


GrasshopperDocument.Author.Name

But here is how to get the Author’s Infos.

@Wiley

Thanks, your advice helps me!
Reading the script in a c# component, I realized GrasshopperDocument belongs the GH_Document type, and I got the information typing new GH_Document().Author.Name.