Add ATV and ATH parameters to LINKEDSCENE

  • Hi,

    I'm using the default option to link my scenes (Scene A and Sceen B) trought a Hostpot like this :

    Code
    <hotspot name="spot4" style="skin_hotspotstyle" ath="161.745" atv="0.784" linkedscene="Scene B" />

    How can i add the ATV and ATH parameters ?

    Something like this :

    Code
    <hotspot name="spot4" style="skin_hotspotstyle" ath="161.745" atv="0.784" linkedscene="scene_panoramique_cuisine_hd&ath=32&atv=15" />

    Thanks for your help. *wink*

  • Will share a piece of code:

    You can add a variable to your hotspot:


    <!-- place your scene hotspots here -->
    <hotspot name="spot1" style="skin_hotspotstyle" ath="-38.577" atv="12.473" linkedscene="scene_34" lookx="-120" looky="-10"/>

    And a piece of code to you hotspot style:


    <style name="skin_hotspotstyle" url="flecha1.png" scale="0.4" edge="center" oy="0" distorted="true"
    tooltip=""
    onclick="if(linkedscene, skin_hidetooltips(); tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); lookto(get(ath),0,70); loadscene(get(linkedscene),null,MERGE,BLEND(1)); skin_updatescroll(); lookat(get(lookx), get(looky), 110.0););"
    onloaded="if(skin_settings.tooltips_hotspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); )); sub(rx,90,atv);"
    />

    Cheers!

  • Thanks for your help.

    Here what I've done :

    Creat a new style for the Hotspot :

    Code
    <style name="skin_hotspotstyle_retour" url="vtourskin_hotspot.png" scale="0.5" edge="top" oy="0" distorted="false"
    			tooltip=""
    	   	onclick="if(linkedscene,skin_hidetooltips(); tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); lookat(get(hlookat),get(vlookat)); skin_updatescroll(); );"
    	   	onloaded="if(skin_settings.tooltips_hotspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"

    Then assign the new style to my hotspot like this :

    Code
    <hotspot name="spot3" style="skin_hotspotstyle_retour" ath="-144.999" atv="3.554" linkedscene="scene_panoramique_salon_hd" hlookat="-17.87" vlookat="0" />

    It works fine ! *smile*

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!