• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

157

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