can we tween the align setting?

  • it does not work for me someone peek at this code and tell me if anything is wrong please.

    <plugin name="banner"
    blendmode="normal"
    keep="true"
    url="../../images/logo.png"
    align="center" edge="top"
    x="0" y="0"
    scale=".26"
    zorder="12"
    onover="tween(plugin[banner].scale,0.5)"
    onout="tween(plugin[banner].scale,0.26)"
    onhover=""
    onclick=""
    />

    this is the starting action and it don't work.

    <action name="intro">
    wait(2); tween(plugin[banner].align,topcenter);
    </action>

    wondering if it just me.

    EDIT: set works but tween does not.

  • Hi,

    no, only numeric values can be "tweened",

    but there is a possibility to tween e.g. from "center" to "top" alignment,

    see here for the changeorigin() function:
    https://krpano.com/docu/xml/#plugin

    this function changes the align(=origin) and recalculates the x/y values to keep the current position,
    then in a next step it's possible to tween the x/y values,

    Code
    <action name="intro">
      wait(2); 
      plugin[banner].changeorigin(top);
      tween(plugin[banner].y, 0);
     </action>

    best regards,
    Klaus

Participate now!

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