You are not logged in.

1

Sunday, March 17th 2013, 10:13pm

How to enable/include/invoke Plugins?? (SOLVED)

*confused* This is a very basic question for which I can't seem to find an answer. How do you enable a plugin? I'd like to experiment with the Gyro plugin, but I can't find a straightforward explanation of how to include it with the panorama and make it work.

This post has been edited 3 times, last edit by "mosleyh" (Mar 19th 2013, 2:23pm)


2

Tuesday, March 19th 2013, 2:22pm

Figured this out (at least for the Gyro Plugin). Two things were tripping me up. Here are the steps that solved it for me:

Prepare panorama as usual with droplet

Copy Gyro.js into the root level of the panorama's folder

Copy the necessary XML code from the Gyro example XML file (gyro.xml): <plugin name="gyro" url="../../gyro.js" enabled="true" camroll="true" friction="0.5" velastic="0.2" devices="html5" keep="true" />

paste into the .xml file created by the droplet

edit the path in the pasted code to be the final path to the Gyro.js once it's uploaded (in red above) (trip-up #1)

Upload the folder to webserver as usual

Change permissions of Gyro.js to 777 (trip-up #2)

And now it works. I suspect that the steps will be similar for other plugins.