Sorry about my english...
I want to add button from plugin not direct by code in tour.xml
I want when I call plugin from website, plugin will be load with vtour with button. If without plugin, no button is display.
Beiträge von kenit2212
-
-
I have plugin.js file and I want add button to it.
I read document at here but I don't know how to create button -
Who can help me????
-
I want to add context menu to vtour throught javascript plugin, how to do it?
-
Hi,
I'm developing plugin using java script in krpano. I read document to develop it but I can't do it.
Now I want to draw a button and display it in vtour and add function to the button.
Thanks for helps -
Thank you very much spacerywirtualne. I sloved
-
In tour.xml i write:
<plugin name="myplugin" url="plugins/plugintemplate.swf" keep="true"/><action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
loadscene(get(startscene), null, MERGE);
showlog();
plugin[myplugin].testfunction1();
</action>but when I play vtour, it trace:
INFO: krpano 1.16.6 (build 2013-08-09)
INFO: Flashplayer WIN 11.8.800.170 PlugIn
WARNING: unknown action: plugin[myplugin].testfunction1
INFO: attr4 will be changed from 10 to 10
INFO: hello from plugin[myplugin] -
Hi,
I write myfunctionprivate function testfunction1(...rest):void
{
// trace the given arguments
krpano.trace(1,"testfunction1() called with " + rest.length + " arguments:");
for (var i:int=0; i<rest.length; i++)
krpano.trace(1,"argument" + (i+1) + "=" + rest);// trace the current viewing direction and fov
krpano.trace(1,"current view:");
krpano.trace(1,"hlookat = " + krpano.view.hlookat);
krpano.trace(1,"vlookat = " + krpano.view.vlookat);
krpano.trace(1,"fov = " + krpano.view.fov);
}In have include this plugin in my tour.xml. I create a button in my tour. I want when i click to the button, that function will be called.
How would I do? -
Hi,
sorry, but just 'doesn't work' is too unspecific to be able to help...
How are you including it? (scenes and keep=true? html5 viewer?)
Best regards,
KlausYes, I have include like this
-
I have included plugintemplate.js in to my vtour.
How can I call testfunction1() in plugintemplate.js from tour.xml ? -
I have include plugin but I can't call function of that plugin form tour.xml
-
I use "get(scene[get(xml.scene)].name))" to get name of scene but it not return exactly. E.x: in xml, name of scene is "scene_IMG_2752_Panorama" but it return "scene_img_2752_panorama".
-
I download plugintemplate.js in https://krpano.com/docu/plugininterface/#js and include it like you but it doesn't work.
-
Hi,all
I'm a new bie in krpano. I want to make own plugin. I followed in this pagehttps://krpano.com/docu/plugininterface/#js
but I can't use function like testfunction1(), testfunction2()...
So how I can use it,help me please?
Or let me see how to make and use plugin step by step.
Thanks a lot.
Sory about my english.