JavaScript to create Views on 3D PDF

New Here ,
Feb 22, 2021 Feb 22, 2021

Copy link to clipboard

Copied

I am trying to write a javascript button to create a few Views on my 3D PDF.

I can't seem to seem to access the projectionType or the FOV properties.

The following doesnt seem to work:

getAnnots3D(0)[0].context3D.scene.projectionType ="perspective";
getAnnots3D(0)[0].context3D.scene.fov ="10";

 

I am able to access the renderMode using similar logic.

I also have no idea how I would actually create a View once I manage to set my Camara properties.

 

Does anyone know what I am doing wrong and could help figure it out?

 

Best,

Jose

TOPICS
JavaScript, Rich media and 3D

Views

21

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation