I am looking for a way to change 3D views using JavaScript. I want to obtain similar result as the predefine action (Go to a 3D view) but with code that is embedded with a combo-box.
I have a JS that populates a combo-box from an attached xml doc. I am looking to use a similar “Go to a 3D view” function with this selection list.
Are there any examples of a JS that would run the same as the “Go to a 3D view”?
My Product Information:
Acrobat 3D 8.1 / Windows
Offline

Take a look at this Adobe site.
Download the Javascript Reference Manual for Acrobat 3D. Review the sections on Event Handlers.
http://www.adobe.com/devnet/acrobat/javascript3d.html
Offline

Hello cshively,
I also use Acrobat 3D but have not used this function in my developments.
I did find some information on JavaScripting this function in the links I've added to this comment.
I hope they help.
http://www.adobe.com/designcenter/acrob … ntent.html
http://www.box.net/shared/static/b05zheq88k.pdf
Offline

I've found what I believe is the answer but I've got to test it to make sure it does what you want.
Expect an answer posted here tomorrow.
Offline
I have looked at using the camera event handler; however we would like to use the views that have been created in acrobat, and not create the 3D view from a new camera creation using JavaScript.
An example of how we would like this to be used would be for a house that has a drop down list that lists all of the rooms in that house. An individual could then interact w/ the 3D through the Combo-Box by selecting the room and activating a predefined view of the room. This could make it much easier for an end user to be able to view the different rooms with ease.
However with all of the research I have completed the camera events do not interact with the views they are more about creating a new camera or controlling the current active camera and how it works.
I appreciate the information you have posted and have read it all, still doing research on this end.
Have you been able to find out any additional information on this?
Offline

I've sucessfully implemented a 3D annotation using this Acrobat 3D tutorial which is my best offer for a solution to what you're trying to do.
http://www.box.net/shared/static/yda2e0easw.pdf
From my preliminary research, I've not found a way to do this using javascript in a combo box.
You could add a 3D view to a bookmark or link by following these instructions.
1. Right-click (Windows) or Control-click (Mac OS) the bookmark or link, and choose Properties.
2. Click the Actions tab.
3. From the Select Action menu, select Go To A 3D View, and then click Add.
4. In the Select A 3D View dialog box, select the view you want, click OK, and then click Close.
If this doesn't provide the solution you're seeking, try posting the question on the Acrobat User Community Forum http://www.acrobatusers.com/forums/aucbb/ - Acrobat 3D
Offline
Eugene,
Thank you for your efforts on this, I will take a look at the recommendation that you have posted, and see if it will meet our needs.
Offline
Eugene,
I wanted to let you know that we have come up with a solution for what we are trying to achieve.
We created a series of buttons that will be stacked on each other. Each of these buttons has a unique name i.e. VIEW-01 and each as a specific view associated with it. We then wrote a function that is tied to the combo box. This function changes the all of the buttons to be a hidden button, except for the one that has been selected in the combo box.
So the user will select the item in the combo box then click on the VIEW button and it will take the user to the pre-defined view associate with the visible button.
It is not as good of a flow as we would like, but it works. I just wanted you to know for future reference.
Again, thank you for your help on this.
Offline
I have a very similar problem. I'm not sure where to look under event handlers, I'm not understanding the CameraEventHandler.
Offline
In reply to Eugene's comment. Upon an event occurring (like a click of a mouse), a function needs to triggered.
The main question is: what is the function that executes the predefined "Go to a 3D view"?
Offline
Eugene, I read the documents you have linked. I appreciate your time in finding these articles, but I still do not know the JS function that allows a 3D view change. The articles document how to implement said function, but does not specify what the function is called.
Another line of my thinking is: When you go to:
3D properties on the 3DAnnot > Manage Views > NEW VIEW. What does Adobe 3D save this newly-created view as? What does Adobe 3D store the name of the view as? The clincher is: Is there a way to retrieve the view in JS form?
Offline
AcrobatUsers.com >> User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in