How can I store global variables one by one in an array?


I saw your github and contacted you.
Is this the right place to post my question?
If I'm wrong, please delete it.

I would like to ask the following questions.

I am trying to create a function in an OSL script that will evaluate the Coordinate of one of the "global variables P" and the Coordinate of the other. I have read and checked the OSL specifics, but I could not find any description of how to extract an array from a global variable. If possible, could you please tell me how to call the Coordinate one by one from the "global variable P"?

Also, on a different note, I found that the global variable behaved like a structure with some parameters. Please let me know if there is a site or a way to refer to such parameters.

Thank you. 

Join { to automatically receive all group messages.