Sie sind nicht angemeldet.

1

Freitag, 27. Februar 2015, 12:00

How to dynamically remove <scene> ?

How to dynamically remove <scene> element, same as removelayer(); do ?

benji33

Fortgeschrittener

Beiträge: 244

Wohnort: France

Beruf: Senior Software engineer

  • Nachricht senden

2

Montag, 2. März 2015, 12:54

Not tested but delete(scene[get(xml.scene)]); perhaps ?
Or use loadscene action on an empty scene name ?

3

Mittwoch, 4. März 2015, 10:25

Hi,

the <scene> elements are krpano-array-elements.

Removing such array item is possibly either by setting the name of that item to null - then the item will remove itself from the array:

Quellcode

1
set(scene[name_of_the_scene].name, null);


or by calling removearrayitem (a function mainly from the krpano plugin interface, but that is also available in the xml):

Quellcode

1
scene.removearrayitem(name_of_the_scene);


Best regards,
Klaus

benji33

Fortgeschrittener

Beiträge: 244

Wohnort: France

Beruf: Senior Software engineer

  • Nachricht senden

4

Mittwoch, 4. März 2015, 13:09

Excellent I forgot this.