The function name is "getAnnot3D", no "s".
Here's the reference entry:
https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/doc.html#getannot3d
This function is meant to be run from the document context. For example, a button on the PDF. It also has two input parameters, the page number and the annot name. I suspect that both are required since the return value is the 3d annotation object.
You're code looks reasonable, i.e., there are no obvious syntax or structure errors and it follows the pattern I rember from when I was doing 3d programming in PDF. However, the JS model has be revamped since that time, so I couldn't comment on the specifics.
3D scripting is a highly specialized topic and requires spending some time learning the details. That said, your code might just work as is, once you fix the function name.
... View more