You are not logged in.

1

Tuesday, January 7th 2020, 6:52am

Intrologo only in first scene

Hi,

I want my intro logo only in the first scene, now it shows top in all scenes, please advice.

Thanks Marcel



<plugin
name="intro"
url="logo_mw.png"
align="center"
keep="true"
onloaded="showintro();"
onclick="hideintro();"
zorder="100"
handcursor="false"
/>



<action name="showintro">
set(plugin[intro].enabled,true);
tween(plugin[intro].alpha, 1, 0.5, default);
</action>

<action name="hideintro">
if(plugin[intro].enabled,
set(plugin[intro].enabled,false);
tween(plugin[intro].alpha, 0.0, 0.5, default);
);
</action>

2

Tuesday, January 7th 2020, 7:16am

When I use this I get an XML error:

<action name="startup">
if(plugin[only1time].onlyonce == 0, set(plugin[introimage].visible, true));
</action>

<action name="hideintroimage">
set(plugin[only1time].onlyonce, 1);
if(plugin[introimage].enabled,
set(plugin[introimage].enabled,false);
tween(plugin[introimage].alpha, 0.0, 2.5, default, removeplugin(introimage)););
</action>

<scene>
...
<plugin name="only1time"
onlyonce="0"
/>

<plugin name="introimage"
keep="false"
visible="false"
url="images/instructions.jpg"
align="center"
scale=".9"
onloaded="set(alpha,0); tween(alpha,1);"
onclick="hideintroimage();" />

</scene>

vrTourSoft

Beginner

Posts: 38

Occupation: Software development

  • Send private message

3

Wednesday, January 15th 2020, 2:47pm

On load tour or first scene start your showintro action/
Set some variable (not plugin) that will check if you play action.
set(only1time,true);set(only1time,false);

It's all


By the way, in vrTourSoft you can set start action and select how many times to play it.
vrTourSoft - standalone WYSIWYG editor and development environment for krpano
https://www.vrtoursoft.com/

Similar threads