Set krpano area via action ?

  • hi,

    i'm using the area feature :

    Code
    <area  x="33%" y="0" width="67%" height="100%" />


    works fine

    but i'm wondering if i can set this dynamically via action like this :

    Code
    <action name="area">
    	set(krpano[area]).x, 33%;
    	set(krpano[area]).y, 0;
    	set(krpano[area]).width, 67%;
    	set(krpano[area]).height, 100%;
    </action>

    is this do-able now or in the futur ??

    Thanks

    D

  • Hi zadda,

    wrong:
    set(krpano[area]).x, 33%;
    corrected:
    set(krpano[area].x, 33%);

    Code
    <action name="set_area">
    	set(krpano[area].x, 33%);
    	set(krpano[area].y, 0);
    	set(krpano[area].width, 67%);
    	set(krpano[area].height, 100%);
    </action>

    or:

    Code
    <action name="tween_area">
    	tween(krpano[area].x, 33%);
    	tween(krpano[area].y, 0);
    	tween(krpano[area].width, 67%);
    	tween(krpano[area].height, 100%);
    </action>

    SAlut.

  • Thanks for correcting ,
    but it doesn't works for me, have you got live example like pressing a btn to tween the area for example,
    i don't figure out what's wrong in my code ?? *confused*


    ah OK, found it :

    Thanks, problem fixed *g*

    Edited once, last by zadda (September 18, 2010 at 11:40 PM).

  • another question...

    ok i move my pano area to fill 2/3 of screen,
    my goal was to fill up the 1/3 empty with the maps plugin,
    but it seems maps want to stay over pano area, even with negatives values,

    Code
    tween(plugin[maps].x, -33%, 0.4);


    is this possible to get maps and pano side by side ? or maps plugin must stay over pano ?? *confused*

    I find it : add parent="STAGE" in plugin attributes, that's it *g*

    Edited once, last by zadda (September 19, 2010 at 12:19 AM).

Participate now!

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