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

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
undo
Posts: 29
Joined: Sat Dec 10, 2005 2:37 pm
Location: Germoney

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

Post 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?
User avatar
Rai López
Posts: 2292
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Post 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
User avatar
undo
Posts: 29
Joined: Sat Dec 10, 2005 2:37 pm
Location: Germoney

Post 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?
gavi dvan
Posts: 123
Joined: Thu Dec 08, 2005 1:57 am
Location: Melburn, Australia

Post 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..!
This is a block of text that can be added to posts you make.
There is a 255 character limit
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Post 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.
gavi dvan
Posts: 123
Joined: Thu Dec 08, 2005 1:57 am
Location: Melburn, Australia

Post 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.
This is a block of text that can be added to posts you make.
There is a 255 character limit
Post Reply