Page 1 of 1

is it possible to copy keyframes from one layer to another?

Posted: Thu Jan 19, 2006 11:59 pm
by undo
Ive got a spaceship animated.
Now i want to put a particle cloud at the back of the spaceship.
unfortunately ive not put the ship into a group and animated the group,
but ive animated the ship-layer directly.

now i wanted to simply copy the move-layer-keyframes to the particle-group.
but that doesnt work.
any ideas?

Posted: Fri Jan 20, 2006 12:11 am
by Rai López
Read about this USEFUL macton's scrips :arrow: HERE and pay speciall atention to those called "Save Layer Animation" and "Load Layer Animation" ...GOOD LUCK! :D

Posted: Fri Jan 20, 2006 12:53 am
by undo
cool tools,
but it didnt work :(

i saved the layer animation of an image Layer (the spaceship) (do i need a file-ending like ".***" ?)
and tried to load it onto the particle layer.

...\cc_load_layer_animation.lua:614: attempt tp index local `layer' (a nil value)

whats wrong?

Posted: Fri Jan 20, 2006 3:39 am
by gavi dvan
You could try copying the keyframe coordinates from your animated spaceship layer onto your particle layer - Go to your spaceship layer, click the translate layer tool so that the coordinates show up at the top of the screen, and wherever there is a keyframe, switch to your particle layer and type in the same coordinates at the same frame.

Not the best way to do it but it should work..!

Posted: Fri Jan 20, 2006 4:19 am
by macton
undo wrote:cool tools,
but it didnt work :(
[...]
whats wrong?
If you want to copy from one type of layer (image) to another type of layer (particle) you need to use these scripts:
# Copy Generic Layer
# Paste Generic Layer

Not the copy/paste layer animation scripts - those copy from the same type of layer or hierarchy of layers

There are instructions in a followup message under:
"You can use the copy and paste generic layer scripts to copy keyframes between different types of layers. "

See also:
http://www.lostmarble.com/forum/viewtopic.php?t=2288
undo wrote: do i need a file-ending like ".***" ?)
No. You can name it whatever you want.

Posted: Fri Jan 20, 2006 4:28 am
by gavi dvan
gavi dvan wrote:You could try copying the keyframe coordinates from your animated spaceship layer onto your particle layer - Go to your spaceship layer, click the translate layer tool so that the coordinates show up at the top of the screen, and wherever there is a keyframe, switch to your particle layer and type in the same coordinates at the same frame.

Not the best way to do it but it should work..!
On second thoughts, I thought of a better way to do what I just said. Instead of copying your coordinates onto your particle layer, copy your keyframe coordinates onto your GROUP, then delete them from your spaceship layer, and then have your spaceship layer and your particle layer within this group.