Copy link to clipboard
Copied
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 :
link to u3d resource :
Copy link to clipboard
Copied
The solution is to call the addModel() method inside the context3D.
Copy link to clipboard
Copied
The solution is to call the addModel() method inside the context3D.
Copy link to clipboard
Copied
Goodday.
Can you help me with a full script example?
Thank you
Merci et bonne journée
Cmo
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more