SketchUp WebExporter...
-
Hi Everyone...
Is it possible to get the WebExporter to take images on a vertical axis instead of the horizontal, or even both..?
Thanks
Luke
-
Luke,
The WebExporter plugin "facilitates" setting horizontal-rotation camera positions, exporting the pictures, and generating HTML javascript code for display on a website. If you examine the javascript code produced, and the image files created, you'll see that the web code is simply displaying a series of images, with mouse control.
You can substitute whatever images you want (keeping the names straight, of course.) The web code will still display the series of images, with mouse cursor control. As you have noted, mouse control is for horizontal rotation. If your model approximates a horizontal direction, you can substitute images to do something like this, on José Manuel's blog:
Modelado con SketchUp
(Give the images time to load - it may take a little while.)If you're familiar with javascript, it shouldn't be too difficult to modify the script produced by the WebExporter plugin, to switch to a vertical axis. With the appropriate images, mouse control will provide the appearance of vertical rotation.
That's the "manual" way of making such changes.
To automate the process -- modifying the WebExporter plugin -- it appears that the rubyscript file is plain text, as are the support files (except for "RubyZip.dll" -- for compressing the produced files?) Since the plugin and the produced html files are plain text, it should be possible to produce a "new" vertical-rotation WebExporter plugin, using the original as a boilerplate.
Getting the existing WebExporter plugin to do other than horizontal? Nope -- that's all it can do.
Taff
-
I suggested this approach a long time ago...
It's basically the same as WebExporter, but for Blender and exports the camera at different altitudes as well.
WebExporter could be expanded to do a lot of different animations; such as shadow studies and panoramic animations.
Advertisement