Thanks for your answer, I tried to find a different way since I have lots of other code in my scenes, and I wanted to avoid code duplication...
But if there's no other solution I'll just do that!
Thanks for your answer, I tried to find a different way since I have lots of other code in my scenes, and I wanted to avoid code duplication...
But if there's no other solution I'll just do that!
Hi all,
Each of my panoramas are in <scene> tags, that I load with loadscene. The thing is I want the scene to load different images depending on a parameter I could provide in the loadscene(). For instance, I have a kitchen, which can be viewed classic, modern, old style...
So my question is: can I modify my actual code below to send a parameter to the scene from loadscene()?
Or do you think I have to write the same code thrice, one for modern, old, and classic style? It would be almost the same code, which is not very nice I think...
my call to loadscene:
my kitchen scene:
<scene name="kitchen" onstart="action(startscene);">
<action name="startscene">
action(activatespot, kitchen, 40);
set(plugin[radar].heading, 0);
</action>
<image type="CUBE">
<left url="../images/kitchen/classic/left.jpg" />
<front url="../images/kitchen/classic/front.jpg" />
<right url="../images/kitchen/classic/right.jpg" />
<back url="../images/kitchen/classic/back.jpg" />
<up url="../images/kitchen/classic/top.jpg" />
<down url="../images/kitchen/classic/bottom.jpg" />
</image>
</scene>
Alles anzeigen
Thanks a lot!
Hi,
I use these buttons to zoom on my panorama:
<plugin name="in" url="../images/interface/boutons/btn_plus.jpg" align="bottom" edge="center" y="40" x="-160" blendmode="screen" ondown="set(movevectorz,-1);" onup="set(movevectorz,0);" onover="set(blendmode,add);" onout="set(blendmode,screen);" />
<plugin name="out" url="../images/interface/boutons/btn_minus.jpg" align="bottom" edge="center" y="40" x="-120" blendmode="screen" ondown="set(movevectorz,+1);" onup="set(movevectorz,0);" onover="set(blendmode,add);" onout="set(blendmode,screen);" />
I'm trying to limit the zoom range to a minimum and a maximum. I thought about adding a condition in the ondown event, so that if the movevectorsz variable is too low, I cannot zoom more, and if it's too high, I cannot unzoom more.
I thought about something like that:
Zoom button:
Unzoom button:
The thing is, I don't find how to know the realtime value of the movevectorz variable, it seems not to be in the options plugin I displayed on my panorama.
Could someone please help me on this?
Thanks a lot!
Well I think I'm gonna use buttons instead of the combobox plugin.
Thanks for the answers!
Ok it works with keep="true".
What is the purpose of this keep argument?
Thanks a lot Tuur!
I found this old topic on the forum => http://www.krpano.com/forum/wbb/inde…mbo+box#post959
http://www.krpano.com/forum/wbb/inde…mbo+box#post959, where Klaus (he's the creator of krpano right?) is saying that he will create a new combo box plugin.
The topic is one year old, and I wonder if something has been done on this matter (possibility to change the design).
Great thanks Jarredja!
Hi,
Is it possible to change the colors of a combobox plugin, or maybe even the whole the design?
I didn't find anything in the documentation, so does it mean it's not possible?
Hi,
I'm trying to add the functionnality of hiding the interface of my panorama when the user is idle, and then to display it again when he does an action (drag, click...).
Actually, I would like to do precisely what is done on this example => http://www.krpano.com/krpano.html?pa…bucht/bucht.xml
but I don't know how to find the xml file of this panorama... (how can I download the xml file of this example?)
I tried to find that in the examples that we can download, but didn't find anything...
Any help would be much appreciated, thanks!
Thanks for your help, but while it helped me load the images of the panorama, my radar doesnt work.
1) Before your help, I was using this to call the xml file in my interface:
Result: the radar worked fine, but I couldn't see the panorama.
krpano console panel shows:
ZitatWARNING: ExternalInterface NOT available
WARNING: loadpano() - busy
ERROR: mask "mapmask" not found!
2) If I use your code to call the xml:
Resut: I now see the panorama, but not the radar anymore.
krpano console panel shows:
ZitatWARNING: ExternalInterface NOT available
ERROR: no parent "map" found
Is it possible to have both, or do I have to remove some things from the xml, and code them in my interface?
Hi all,
I created a panorama using an xml file, and I have to create an interface to add a new functionnality.
When I load my panorama with the new swf file I created (the interface), it does not work.
So my question is, is it possible to use an advanced xml file such as the one I attached when using an interface? Or is it normal that it doesn't work?
Thanks a lot for your answer!