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

buttons and javascript

Community Beginner ,
Aug 02, 2021 Aug 02, 2021

Copy link to clipboard

Copied

Hello all,
I created 3D animation pdf. I need to add buttons like play, pause, reset animation, play next step,play previous step.
I dont have much knowledge in java script. this is the first time im creating some scripts with help of google...

Somehow,successfully i created for Play and Pause animation but i got struck with remaining buttons.

var annot = getAnnots3D(0)[0];
annot.context3D.runtime.play();

If i use 

var annot = getAnnots3D(0)[0];
annot.context3D.reset(); is not working for me.
vinothk92107740_1-1626842671158.pngvinothk92107740_0-1626842627736.png

and i have another query also , when ever i open the 3D pdf ,it started playing automatically.

 

This is my settings, how to stop automatically playing animation , I tried all the option from the above setting file.
Thanks in advance.

TOPICS
Acrobat SDK and JavaScript

Views

121

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
Community Expert ,
Aug 03, 2021 Aug 03, 2021

Copy link to clipboard

Copied

Hi,

 

Taking a quick look at the docs there is a play.

annot.context3D.runtime.play();

but there is not a reset, so I would not expect this to work.
annot.context3D.reset(); is not working for me.

 

Are you trying to reset the scene back to its starting position?

 

I do not see something obvious to adjust the 3d object play when open, can you provide a sample file?

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
Community Beginner ,
Aug 03, 2021 Aug 03, 2021

Copy link to clipboard

Copied

Hi Barlae,

Please refer the attached pdf.

Im not able to connect the 3D model and buttons through java script. 


Thanks in advance

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
Community Beginner ,
Aug 16, 2021 Aug 16, 2021

Copy link to clipboard

Copied

waiting for the answer....

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
Community Expert ,
Aug 17, 2021 Aug 17, 2021

Copy link to clipboard

Copied

LATEST

Hi,

 

I have had a look and I can't see the solution, hopefully, someone else is able to shed some light for you.

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