You are not logged in.

1

Monday, March 14th 2016, 10:30am

can get scene title outside title

i just got a job which boss want to change scene title not by editing tour.xml。
so i have to make one extra xml which with <layer name="scene_1" html="livingroom" />
then set one action as <action name="scenetitle">
for(set(i,0), i LT scene.count, inc(i),
txtadd(scenetitle, 'scenetitle', get(i));
set(scene[get(i)].title, get(layer[get(i)].html));
);
</action>
and set it work in scene onstart
but it doesn‘t work
can u help me , please。

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

2

Monday, March 14th 2016, 2:41pm

Something like:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
<action name="update_titles">
 for(set(i,0), i LT scene.count, inc(i),  
 txtadd(scene_index,'scene_', get(i));  
 set(scene[get(i)].title, get(titles.scene[get(scene_index)].new_title));
);
</action>

<titles>
 <scene name="scene_0" new_title="scene 0 title"/>
 <scene name="scene_1" new_title="scene 1 title"/>
 .
 .
</titles>

3

Tuesday, March 15th 2016, 7:48am

thanks a lot

it works , thanks a lot. umalo

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

4

Tuesday, March 15th 2016, 8:10am

now you can make your boss happy *thumbup*