After loading Image, how to go back to preview.

  • <preview> shows before <image> loaded.

    What I ask is that.
    After <image> loaded, is there a way to load <preview> back and load <image> again?
    It's like toggling <image> visibility.

    I've been thinking a create a scene with no <image> but <preview>
    are toggling two scenes only way to implement so?


    Kabkee Moon

  • Hi,

    no sorry, there is currently no option or setting for a preview-only rendering...

    But you could do that - add a xml-if check to the <image> element like this:

    Code
    <image ... if="!previewonly">
      ...
    </image>

    and then just 'reload' the current scene and set previewonly=true before:

    Code
    set(previewonly,true);
    loadscene(get(xml.scene), null, MERGE|KEEPVIEW|KEEPMOVING|KEEPPLUGINS|KEEPHOTSPOTS, BLEND(0.5));

    Then the <image> element will be skipped when loading the scene and so only the preview will be shown.

    and to switch back:

    Code
    set(previewonly,false);
    loadscene(get(xml.scene), null, MERGE|KEEPVIEW|KEEPMOVING|KEEPPLUGINS|KEEPHOTSPOTS, BLEND(0.5));

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!