Sie sind nicht angemeldet.

Luis Erantzcani

Fortgeschrittener

  • »Luis Erantzcani« ist der Autor dieses Themas

Beiträge: 249

Wohnort: Mexico City

Beruf: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Nachricht senden

1

Freitag, 7. Juli 2023, 00:11

Getting custom array content

Hello!

I'm coding a krpano maps plugin where I create/move/remove layers (mapspots), I store all mapspots info at an array with this shape:

<map_mapspots>
<spot name="scene_name_1" x="03" y="123" parent="map_image_2" headingoffset="30"/>
<spot name="scene_name_2" x="30" y="023" parent="map_image_2" headingoffset="40"/>
...
<spot name="scene_name_n" x="33" y="003" parent="map_image_2" headingoffset="00"/>
</map_mapspots>[/code]

I then want to copy this code to clipboard, but haven't found any way to do it. I can copy text to clipboard and access/edit/remove values/items at array, but in this case I'd like (if possible) to get either the children elements of the <map_mapspots> array or whole array code.

Any idea of how to achieve this?

Thank you! *thumbsup*

Luis