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

why addModel(model.u3d) doesn t work ?

New Here ,
Jan 15, 2017 Jan 15, 2017

Hello,

I have create an sample 3d pdf then i attach a u3d file as resource to pdf level.

I create a button :

c3d = getAnnots3D(0)[0].context3D;

var ressource = new c3d.Resource("pdf://one.u3d");

c3d.scene.addModel(ressource);

c3d.scene.update();

I don t know why it doesn t work.

return :

Line: 0: Code: 1(0x1): addModel

GeneralError: L'opération a échoué.

ScriptProxy.(null):3:Field import_number:Mouse Down

Line: 0: Code: 1(0x1): addModel

what do i wrong ?

Thanks in advance...

link to pdf sample :

test.pdf - Google Drive

link to u3d resource :

one.u3d - Google Drive

TOPICS
Rich media and 3D
852
Translate
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
1 ACCEPTED SOLUTION
New Here ,
Jan 16, 2017 Jan 16, 2017

The solution is to call the addModel() method inside the context3D.

View solution in original post

Translate
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
New Here ,
Jan 16, 2017 Jan 16, 2017

The solution is to call the addModel() method inside the context3D.

Translate
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
New Here ,
Aug 14, 2025 Aug 14, 2025
LATEST

Goodday.

Can you help me with a full script example?

Thank you

Merci et bonne journée

Cmo

Translate
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