You are not logged in.

Search results

Search results 1-3 of 3.

Friday, May 12th 2017, 7:14pm

Author: Marek_

getting current scene/objects xml to save on disk

I'm currently working on moving hotspots after mousedown. I'm using code from the dragabl-hotspots example. Once HS is moved I'd like to save new position in xml config file from "action" script level. Is it possible ? I'm adding new line like this: Source code 1 "set(hotspot[get(name)].atv, atv);" Source code 1 2 3 4 5 6 7 8 9 10 11 12 <action name="draghotspot"> spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l'); sub(drag_adjustx, mouse.stagex, hotspotcenterx); sub(drag_adjusty, mou...

Friday, April 7th 2017, 5:18pm

Author: Marek_

getting current scene/objects xml to save on disk

Hello, I'm trying to create hotspot editor using krpano. I want to save every new update on scene after adding.removing etc. hotspot to .xml file using server side script. Is there a way to get xml as string or object for the current scene or for new objects or even whole project ? If I'm going wrong way, how do you manage saving all updates on panos in .xml ? thanks! Marek