Hello guys,
I try to bring some logic into our panotours especially for floorplan navigation. Normally I would have added one "plugin" for every location I would need.
For example:
|
Quellcode
|
1
|
<plugin name="Standort01" style="skin_mappoints" x="220" y="210" /><plugin name="Standort02" style="skin_mappoints" x="320" y="260" />
|
I know wanted to simply create the "plugins" automatically by the number of scenes.
This is what I camp up with:
|
Quellcode
|
1
|
for(set(i,0), i LT scene.count, inc(i), set(temp, get(scene[get(i)].name), '_Mappoint');addplugin(get(temp));plugin[get(temp)].loadstyle(skin_mappoints);set(plugin[get(temp)].x, get(scene[get(i)].mappointX));set(plugin[get(temp)].y, get(scene[get(i)].mappointY)); );
|
Problem is that only one "plugin" is getting created. Even tough the loop works double checked via a trace.
Anyone know what could be the issue?
UPDATE:
Got it! Problem was "set" of the variable. Instead using "txtadd" did the job.