Using scene title as text inside pano

  • Hi -


    I'm using the VTOUR droplet and I'd like to indicate somewhere in my pano (say top left) the name of the scene (as a simple text).
    The text would have to be automatically updated when changing scene (eg Scene1-> Scene2).

    How could I do that?

    Thanks for your help.

    Cheers,
    Thomas

  • add this code into the tour.xml file this will give you the titles however then will follow the mouse.

    set(plugin[get(thumbname)].onclick, openthumbs() ); <!-- this line is already there -->
    copy(plugin[get(thumbname)].scenetitle, scene[get(i)].title); <!-- add this line -->
    set(plugin[get(thumbname)].onhover, showtext(get(scenetitle)),addtextstylehere ); <!-- add this line -->

    then define a textstyle that hold the text in the upperleft hand corner.

  • Hi VN2009
    I tried your code but no success.
    I nevertheless almost managed to solve the problem by using this code


    if(%1 != NEXT, set(i,0));
    if(i LT scene.count,
    copy(thumb, scene[get(i)].thumburl);
    txtadd(thumbname,'thumb_',get(i));
    addplugin(get(thumbname));
    set(plugin[get(thumbname)].url, get(thumb));
    set(plugin[get(thumbname)].keep, true);
    set(plugin[get(thumbname)].align, leftbottom);
    set(plugin[get(thumbname)].width, 40);
    set(plugin[get(thumbname)].height, 40);
    set(plugin[get(thumbname)].x, 10);
    set(plugin[get(thumbname)].y, 10);
    mul(plugin[get(thumbname)].x, i,45);
    add(plugin[get(thumbname)].x, 5);
    add(plugin[get(thumbname)].y, 5);
    copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x);
    copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y);
    add(plugin[get(thumbname)].zorder, 100, i);
    set(plugin[get(thumbname)].effect,glow(0xFFFFFF,1.0,2,10000));
    set(plugin[get(thumbname)].jsborder,'1px solid #FFFFFF');
    copy(plugin[get(thumbname)].thumbpos, i);
    set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) );
    set(plugin[get(thumbname)].onclick, loadscene(get(linkedscene),null,MERGE,BLEND(1)); ); );

    set(plugin[get(thumbname)].onhover, showtext(get(linkedscene),buttonstyle);

    inc(i);
    buildthumbs(NEXT);

    );

    </action>

    BUT

    It only displays the 1st thumbnail and there must be a mouseover on it to display the remaining ones.
    Then the text is displayed correctly.

    Thx.

  • no idea on the NULL issue though. I use the vtour for alot of mini tours and that has not happened to me.

Jetzt mitmachen!

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