Ken Burns effect

Create fast, sprite powered games with Animation Engine, co-developed with DerBrill Software!

Moderators: heatherlaine, robinmiller, kevinmiller, malte

Post Reply
gwthompson
Posts: 15
Joined: Thu Feb 14, 2008 8:37 pm

Ken Burns effect

Post by gwthompson » Tue Nov 29, 2011 12:34 am

Hi,

AE newbie here! I was wondering if it is possible to use AE 5 to create a pseudo Ken Burns effect on an image. Basically it would resize and move the image at the same time. I can resize an image using aeChangeRect and I can move an image using aeMoveTo but I'm not sure how to combine them so they are happening simultaneosuly.

Any and all help would be greatly appreciated.

Gary

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Re: Ken Burns effect

Post by malte » Tue Nov 29, 2011 11:07 am

Hi Gary,

all the commands in AE are nonblocking. So you can move and change sizes at the same time. For a pseudo Ken burns you have 2 options.

Either you do an aeMoveTo followed by aeChangeHeight and aeChangeWidth or you use aeChangeRect to also move the rectangle while shrinking. When you use aeChangeRect cleverly, you will see the object also moves when changing the rect.

Example using a graphic:

Make a graphic and 2 buttons.

Button 1:

Code: Select all

on mouseUp
   aeChangeRect the long ID of grc 1,304,162,324,230,1000,"inOut"
end mouseUp
Button 2:

Code: Select all

on mouseUp
   aeChangeRect the long ID of grc 1,108,162,174,230,1000,"inOut"
end mouseUp
Hope that helps,

Malte

gwthompson
Posts: 15
Joined: Thu Feb 14, 2008 8:37 pm

Re: Ken Burns effect

Post by gwthompson » Tue Nov 29, 2011 3:45 pm

Thanks Malte!

I'll give that a try.

Really great product!

Gary

Surbhit29
Posts: 80
Joined: Thu Aug 16, 2012 1:25 pm

Re: Ken Burns effect

Post by Surbhit29 » Sat Aug 18, 2012 2:46 pm

HI Malte,
I am new at Livecode and not so good knowing the programming language of this and trying to understand some basic concepts.
Can you please tell me that in "1,304,162,324,230,1000" what does "1 and 1000" are for.
I know that other values are point at the stack and corners of rectangle... But what does the first and last number stands for...?

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Re: Ken Burns effect

Post by malte » Sat Aug 18, 2012 7:38 pm

Hi,

the "1" is a reference to the first graphic on the card. You could also use grc "myGraphic". The 1000 is the time the transition should take in milliseconds.

Hope that helps,

Malte

Surbhit29
Posts: 80
Joined: Thu Aug 16, 2012 1:25 pm

Re: Ken Burns effect

Post by Surbhit29 » Sun Aug 19, 2012 9:05 am

Thnx Malte.... :)

Armenhui
Posts: 71
Joined: Fri Oct 16, 2015 12:44 pm

Re: Ken Burns effect

Post by Armenhui » Thu Feb 18, 2016 2:36 pm

Hi I also use AE 5 function aeChangeRect for changeing image size and zooming image it does zoom IN/Out, but this time image was cutting.

Post Reply

Return to “Animation Engine”