• I would like to use includes more dynamicly. This for instance could be handy if you handle language files. You have to load 1 included xml instead of 10.

    Since addVariables have to be defined before krpano begins, could it alsoo be used to include xml like this?

    viewer.addVariable(include.url, somefile.xml);

    Another possible way would by using if statements. You already have something like that, with the devices tag

    <include url="somexml" devices="flash" />

    where flash validates true or false.

    condition="language==uk" or condition="screenwidth GT 1024"

    or more on a action based level

    <action name="load">
    if(language == uk,
    addinclude(somexml);
    //set(include.url, somexml.xml);
    );
    </action>

  • How would this work with scenes? The external included xml loads, but the panorama goes black, even with the keepscenes flag

    Code
    loadpano(%CURRENTXML%/spots.xml, null, KEEPSCENES|MERGE);

    Edit.. hmm I can't get the previous version to work either. Not sure what I do wrong. I have 2 sets of xml, with different hotspots that load in, given a certain fov. The trigger works fine, even made it so it doesnt trigger every onviewchange. But the panorama goes black (the hotspots are lloaded), I tried without scenes and different flags (KEEPALL|MERGE|KEEPSCENCES. No success

    Edited once, last by Zephyr (March 14, 2012 at 1:21 PM).

Participate now!

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