Sie sind nicht angemeldet.

1

Samstag, 4. September 2021, 09:41

Placing a slide button in vtourskin

Hello there,
I want to slide the scenes.

I wanted to embed the code I found in this form before in vtourskin, but unfortunately it didn't work :(
Thanks in advance to anyone who can help with this.

Quellcode

1
2
3
4
5
6
7
8
 <action name="bombtimer">	
 set(bt,%1); add(bt,1); delayedcall(0.1, bombtimer(get(bt))); if(bt == 80, startmanualcontrol(); stopall(); set(bt,0); nextscene();, );	
 </action>

<action name="nextscene">	
 set(ns, get(scene[get(xml.scene)].index) ); set(maxs, get(scene.count) ); add(ns,1); if(ns == maxs, set(ns,0);, );	
 loadscene( get(scene[get(ns)].name ), null, MERGE, BLEND(1.5) );	
 </action> 



little kids inside vtourskin:

Quellcode

1
<layer name="skin_btn_slayt2"   style="skin_base|skin_glow" crop="64|1150|64|64" align="left" x="210" y="0"  scale="0.5" onclick="bombtimer(0);" visible.mobile="false"/>




Is there any other way to do this?

Good work.
Muhammed
»muhammed« hat folgendes Bild angehängt:
  • 1.jpg

Dieser Beitrag wurde bereits 4 mal editiert, zuletzt von »muhammed« (4. September 2021, 10:20)


Scott Witte

Fortgeschrittener

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

2

Donnerstag, 9. September 2021, 19:24

I may be missing something obvious but I, at least, am unsure what you want to accomplish. What do you want to happen and what actually is happening? If you could explain that we might more easily come up with a solution.

3

Freitag, 10. September 2021, 08:42

I want to make a slide show of the scenes in a project by placing a button as in the picture above. I want to place this button in vtourskin.

juyatu

Schüler

Beiträge: 68

Wohnort: China

Beruf: Krpano custom coding

  • Nachricht senden

4

Freitag, 10. September 2021, 15:25

Quellcode

1
<action name="bombtimer">	if(bt GE 80, startmanualcontrol(); stopall(); set(bt,0); nextscene();,set(bt,%1); add(bt,1); );	delayedcall(0.1, bombtimer(get(bt))); </action>


You could write it like this.But your code is too cumbersome, there could be a simpler way.
*thumbup*

Preload Plugin (Free, source code)
Constrast Plugin
KR HLS Plugin
Slider Controller Plugin
KR+Next+MapBox+TS Demo (source code)


微信:Eric_Chen1990

5

Sonntag, 12. September 2021, 17:36

Quellcode

1
<action name="bombtimer">	if(bt GE 80, startmanualcontrol(); stopall(); set(bt,0); nextscene();,set(bt,%1); add(bt,1); );	delayedcall(0.1, bombtimer(get(bt))); </action>


You could write it like this.But your code is too cumbersome, there could be a simpler way.



When I add this code, continuous scenes appear in slide mode.
so the problem is not solved.
How can I add it in vtourskin?
What is the practical way of doing this?

Thanks in advance for your help.

Muhammed