Adding Zoom functionality to Sketchup Web Exporter plugin
-
I was wondering if anyone could suggest a way to add zoom functionality to the sketchup web exporter. I have done various searches in the on this site and in the google forums to no avail.
I have seen this youtube video in this post for improving the exported imagery which is really neat:
http://www.sketchucation.com/forums/viewtopic.php?f=15&t=18476
which is great but I would like to be able to zoom in the 3d view using the mouse wheel like on the 3d warehouse
http://sketchup.google.com/3ndwarehouse/details?mid=c0456049cbbb409a5892cba99422fe90
I need to try and achieve this without relying on any browser plug-in or web connection using html/css/javascript alone. Any thoughts or suggestions would be greatly appreciated
-
Does anyone have any suggestions?
-
Hi David,
Adding a level of zoom is possible. The Web Exporter creates a series of images by moving the Camera in a circle around the target. Images are produced at an incremental angle as the Camera moves. The radius is set using either the model extents (or the selection extents, not sure.)
So it would be possible to decrease the radius and continue to generate another series of images.
You then need to modify the html/javascript template files and add the zoom ability to the user interface code.
Of course, it may also be possible to perform the zoom using only the initial set of images, and this would need to be done using the javascript part of the plugin.
It's possible, but also not trivial (to me who knows little javascript, at least.)
-
Hi Jim,
Thanks for your reply. I would prefer to add the zoom functionality in the javascript which is probably easier said than done! for me anyway. I was planning to export higher res images than those exported by default using the web exporter plugin.
Will have a play around with your suggestion and post back.
Advertisement