These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Wrong placement of nodes in 3D views

itsraghuin
Registered: Sep 8 2009
Posts: 18

I have a PDF file with U3D data placed in 3D annotation. I'm using standard AnimationController.js provided by Adobe for controlling animations. I have a "View" button to set the 3D views. The views are set properly when I press View button without playing animation before. The placement of nodes is as desired. Once I play the animation, if I try to set the view (using View button or View combobox in 3D toolbar) the node placements are wrong. It does not reset the position of nodes. I also have a rewind button. If I use rewind button after play and then set the view then it is placed properly. Now, if I try to combine the code of rewind and set view then it does not do so. On first click, it only performs rewind and on second click it sets the view. My feeling is that it is not able to redraw scene after reset and before set view. I tried to use runtime.refresh but it does not help. Strangely if I place a app.alert() in between rewind code and set view code, it somehow redraws the scene on OK button (in message bix) click and view is set properly in single click.
Any idea what is happening here?

-regards
raghuvan

My Product Information:
Acrobat Pro Extended 9.1.3, Windows
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
try using scene.update() followed by runtime.refresh() in the code - though I have to say the combination of keyframed animations (which is what views are in effect) and javascripted animations tend not to play well together unless you've very careful with the code. It's a battle between conflicting processes and apparently-random changes in timing and execution order can make all the difference.
itsraghuin
Registered: Sep 8 2009
Posts: 18
Hey UVSAR, thanks for your reply. I tried it but does not help. Any other ideas?

-regards
raghuvan
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
Sorry but without seeing the PDF in question and the JS code you're using it's not possible for us to track down the issue. If you can upload it to the web and post a link we can take a look, but remember to include a copy of the JS file you've embedded into the 3D annotation as we can't re-extract that direct from the PDF.