Hi,
I'd like to know if and how is possible to increment the file number to create a template that will make each scene with a different file name.
This is the scene template:
<scene name="[BASENAME]" title="[NAME]" onstart="action(startautoplay-off)"[THUMB][GPS][DEVICE]>
<events name="[NAME]_event" onxmlcomplete="set(plugin[play-button].onclick,playsound(voice001, 'audio001.mp3|audio001.ogg'); set(plugin[pause-button].visible,true))" />
[VIEW]
[PREVIEW]
[IMAGE]
[HOTSPOTS]
</scene>
Where is voice001, audio001.mp3, audio001.ogg I want to make them voice002, audio002..... voice003, audio003... for each new scene that will be created with the "make vtour highres droplet".
In the same vtour I have these actions:
<action name="startautoplay-off"> stopallsounds(); set(plugin[stop-button].visible,false); set(scene[ptips-001].onstart,action(startautoplay-off);); set(scene[ptips-002].onstart,action(startautoplay-off);); set(scene[ptips-003].onstart,action(startautoplay-off);); </action>
Here I'd like to change the onstart to all scenes, but the quantity of scenes will vary from tour to tour.
Is there a "change all scenes" onstart to.... function?
Or how can I generate the sequential names [scene-001], [scene-002]...... the same amount of times as the number of scenes in the tour? Again another usage that I don't know how to solve:
<action name="startautoplay-on"> stopallsounds(); set(plugin[pause-button].visible,true);
set(scene[ptips-001].onstart,stopallsounds(); playsound(voice1, 'audio1.mp3|audio1.ogg');); set(events[ptips-001_events].onxmlcomplete,stopallsounds());
set(scene[ptips-002].onstart,stopallsounds(); playsound(voice2, 'audio2.mp3|audio2.ogg');); set(events[ptips-002_events].onxmlcomplete,stopallsounds());
set(scene[ptips-003].onstart,stopallsounds(); playsound(voice3, 'audio3.mp3|audio3.ogg');); set(events[ptips-003_events].onxmlcomplete,stopallsounds()); </action>
I need to create the sequential changes for scenes and events. Changing also the name of the playsound and the audio files accordingly.
I don't know if the solution is pretty similar to all of them or they are totally unique and I should create different topics.
I'm sorry if it's too long! :/
I appreciate your time not only by reading, but if you can help!!
Thanks,
Daniel