Ken Burns effect
Moderators: heatherlaine, kevinmiller, robinmiller, malte
-
- Posts: 15
- Joined: Thu Feb 14, 2008 8:37 pm
Ken Burns effect
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
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
Re: Ken Burns effect
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:
Button 2:
Hope that helps,
Malte
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
Code: Select all
on mouseUp
aeChangeRect the long ID of grc 1,108,162,174,230,1000,"inOut"
end mouseUp
Malte
-
- Posts: 15
- Joined: Thu Feb 14, 2008 8:37 pm
Re: Ken Burns effect
Thanks Malte!
I'll give that a try.
Really great product!
Gary
I'll give that a try.
Really great product!
Gary
Re: Ken Burns effect
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...?
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...?
Re: Ken Burns effect
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
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
Re: Ken Burns effect
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.