You are not logged in.

VN2009

Professional

  • "VN2009" started this thread

Posts: 1,336

Location: Duluth MN

  • Send private message

1

Wednesday, July 15th 2009, 2:06am

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.

2

Wednesday, July 15th 2009, 10:46am

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:
http://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,

Source code

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


best regards,
Klaus