You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2013-01-24 10:54:49

shane999
Member
From: Sri Lanka
Registered: 2011-08-19
Posts: 28
Website

need help on xml file to select scenes

I am a newbie for all this coding and I was wondering if you could help me out with a problem I came across. I actually do not know any coding. But I read online and try to come up with solutions.

I have attached a screenshot and as you can see I have 3 combo boxes or drop down lists

and my question is if i click on the dropdown list on top left i get 2 options to choose from, say 1. smoking and 2. non smoking

and I need to show only combobox01 when I click on smoking and hide combobox02

and when I click on non smoking I need to show only combobox02 and hide combobox01

can this be done?

any help will be greatly appreciated

Thanks in advance

this is the code i have used.



Code:

<plugin name="combobox" url="Grand-Apartment-Suitedata/graphics/combobox.swf" preload="true" alturl="Grand-Apartment-Suitedata/graphics/combobox.js" keep="true" align="lefttop" x="10" y="10">    <item name="combobox5" caption="smoking" onClick="mainloadpano(Grand-Courtyard-Standard0.xml);selectIdItem(combobox02);"/>     <item name="combobox6" caption="non smoking" onClick="mainloadpano(Grand-Apartment-Suite0.xml);selectIdItem(combobox01)"/> </plugin> <plugin name="combobox01" url="Grand-Apartment-Suitedata/graphics/combobox01.swf" preload="true" alturl="Grand-Apartment-Suitedata/graphics/combobox.js" keep="true" align="rightbottom" x="10" y="40"> <item name="combobox0" caption="Apartment Suite Bedroom" onClick="mainloadpano(Grand-Apartment-Suite0.xml);"/> <item name="combobox1" caption="Apartment Suite Living" onClick="mainloadpano(Grand-Apartment-Suite1.xml);"/> <item name="combobox2" caption="Apartment Suite Washroom" onClick="mainloadpano(Grand-Apartment-Suite2.xml);"/>     </plugin>     <plugin name="combobox02" url="Grand-Apartment-Suitedata/graphics/combobox02.swf" preload="true" alturl="Grand-Apartment-Suitedata/graphics/combobox.js" keep="true" align="rightbottom" x="10" y="10">     <item name="combobox3" caption="Courtyard-Standard" onClick="mainloadpano(Grand-Courtyard-Standard0.xml);"/>     <item name="combobox4" caption="Courtyard-Standard Washroom" onClick="mainloadpano(Grand-Courtyard-Standard1.xml);"/>     </plugin>     <action name="closeglobalobjects"/> <action name="interruptAnimation">

Uploaded Images


---------->>>>>>>>>><<<<<<<<<<----------


Canon 5D Mark II  -  Canon 50D - Canon 8-15mm  -  Canon 10-22mm

Offline

 

#2 2013-01-24 11:04:59

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2357
Website

Re: need help on xml file to select scenes

Hi. I think I know what you mean... At the moment your combo boxes are in the main xml file.. This means that they all show.. However, if you copy and past the  xml code  into the relevant xml pano files, then you only get to see that drop-down in those panos.. You can also locate all your drop-downs at the same location... top left.. 

I think this is what you were asking..

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#3 2013-01-24 11:39:37

bdd
Administrator
Registered: 2011-01-18
Posts: 622
Website

Re: need help on xml file to select scenes

Instead of using "selectIdItem" in the "combobox5" and "combobox6" items. Use the following

  set(plugin[combobox01].visible, true);set(plugin[combobox02].visible, false);

Offline

 

#4 2013-01-24 11:52:14

shane999
Member
From: Sri Lanka
Registered: 2011-08-19
Posts: 28
Website

Re: need help on xml file to select scenes

bdd wrote:

Instead of using "selectIdItem" in the "combobox5" and "combobox6" items. Use the following

  set(plugin[combobox01].visible, true);set(plugin[combobox02].visible, false);

Thanks bdd,

This was exactly what I was looking for.. You are a life saver. And thanks for your reply too destiny, I admire your work. Wish I could code like you guys...

Thanks alot..


---------->>>>>>>>>><<<<<<<<<<----------


Canon 5D Mark II  -  Canon 50D - Canon 8-15mm  -  Canon 10-22mm

Offline

 

#5 2013-01-24 12:05:50

shane999
Member
From: Sri Lanka
Registered: 2011-08-19
Posts: 28
Website

Re: need help on xml file to select scenes

small problem though.. if you look at this link http://230virtual.com/Grand-Apartment-S … Suite.html you will see that at the beginning of the tour both combo boxes at the bottom are visible. is there something we could do to show only one combobox??


---------->>>>>>>>>><<<<<<<<<<----------


Canon 5D Mark II  -  Canon 50D - Canon 8-15mm  -  Canon 10-22mm

Offline

 

#6 2013-01-24 13:43:33

shane999
Member
From: Sri Lanka
Registered: 2011-08-19
Posts: 28
Website

Re: need help on xml file to select scenes

Destiny wrote:

Hi. I think I know what you mean... At the moment your combo boxes are in the main xml file.. This means that they all show.. However, if you copy and past the  xml code  into the relevant xml pano files, then you only get to see that drop-down in those panos.. You can also locate all your drop-downs at the same location... top left.. 

I think this is what you were asking..

Destiny..

I also tried your method destiny and it worked, but the problem is if I have like 30 to 40 clips to show then I'll have to put that code in each and every xml which will take quite some time.


---------->>>>>>>>>><<<<<<<<<<----------


Canon 5D Mark II  -  Canon 50D - Canon 8-15mm  -  Canon 10-22mm

Offline

 

#7 2013-01-24 18:54:59

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2357
Website

Re: need help on xml file to select scenes

Happy coding.. lol Well, there is probably an easier way via cleaver coding from the main which Gérald can explain much better, but this way its simple, easy to understand and as you can see will works.. Its probably not the best way but its not so bad to add or delete but you do have to do a lot of copy and pasting... Use your mouse keys, like select the code, Ctr C, Ctr P.. Open up all the xml pages in one go that need that code and go for it.. wink

Destiny.


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#8 2013-01-24 19:48:09

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2357
Website

Re: need help on xml file to select scenes

Actually there might be a better way... You could create two main xml files. It will then mean you have to add just one extra link to that combobox tour. That way you keep it all very tidy. But you also have to add an extra link to the second combobox back to the first maim xml file. Pity  you cannot change the colours on mouse over on the combobox... I love this feature but not as it is.. Its sadly lacking features and options.. 

Just open up your Main xml, save as virtualtourX and change the start virtual tour at the xml number you want, 10 for example..

So the second Main xml will have:

<!--************** Open the first pano ********************************************************-->
    <include url="virtualtour10.xml"/>
    <autorotate enabled="false"/>

I haven't tried this but it seem doable.. wink

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#9 2013-01-24 20:06:29

shane999
Member
From: Sri Lanka
Registered: 2011-08-19
Posts: 28
Website

Re: need help on xml file to select scenes

Destiny wrote:

Actually there might be a better way... You could create two main xml files. It will then mean you have to add just one extra link to that combobox tour. That way you keep it all very tidy. But you also have to add an extra link to the second combobox back to the first maim xml file. Pity  you cannot change the colours on mouse over on the combobox... I love this feature but not as it is.. Its sadly lacking features and options.. 

Just open up your Main xml, save as virtualtourX and change the start virtual tour at the xml number you want, 10 for example..

So the second Main xml will have:

<!--************** Open the first pano ********************************************************-->
    <include url="virtualtour10.xml"/>
    <autorotate enabled="false"/>

I haven't tried this but it seem doable.. wink

Destiny..

Destiny I found a way to do it. It was very simple I just had to put this in. I don't know the technical words but here's the code . I just went through KRpano documentation and figured it out.  thanks for your help

<krpano onstart="hidecombo();" version="1.0.8.14" logkey="false">

  <action name="hidecombo">
    set(plugin[combobox02].visible,false);
   
  </action>

p.s - and as for the mouse over color on combo box i replied to an earlier topic on this matter but i dont know if it works here's that thread http://www.kolor.com/forum/t15011-can-i … orama-list

and here's my updated link to the pano tour..
http://230virtual.com/Grand-Apartment-S … Suite.html

Thanks again

Last edited by shane999 (2013-01-24 20:08:49)


---------->>>>>>>>>><<<<<<<<<<----------


Canon 5D Mark II  -  Canon 50D - Canon 8-15mm  -  Canon 10-22mm

Offline

 

#10 2013-01-24 20:19:19

shane999
Member
From: Sri Lanka
Registered: 2011-08-19
Posts: 28
Website

Re: need help on xml file to select scenes

[SOLVED]


---------->>>>>>>>>><<<<<<<<<<----------


Canon 5D Mark II  -  Canon 50D - Canon 8-15mm  -  Canon 10-22mm

Offline

 

#11 2013-01-24 23:40:20

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2357
Website

Re: need help on xml file to select scenes

Well done.. Now you just need to get that TV playing.. wink

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson