Get and set of scene URL possible?

  • Hi,

    is it possible to get and set the url of the scene? When trying to get the scene.url like this:
    get(scene[get(xml.scene)].url)
    krpano returns "null".

    Is there a way to dynamically change the url of a scene when using a sphere? Like this:
    <sphere url="frames/00000.jpg" />

    Another question: Is it possible to add a scene dynamically? It´s easy to add hotspots, layers, videos etc. dynamically but how about a scene?

    Thanks a lot in advance,
    Nupsi

  • Hi)

    I remember this post about scene deletion: https://krpano.com/forum/wbb/inde…scene#post58559

    I guess if deletion is possible, then it should be possible to add a scene dynemically.

    I've tried a bit and I guess it should be something like this:

    Code
    showlog();		trace(scene.count);		set(scene[added_scene].name, 'added_scene');		trace(scene.count);		trace(scene[added_scene].name);

    Regards,

    Alexey

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!