halloween
06-10-2011, 07:30 AM
I've been trying to find an answer to this for quite some time but no luck.
Let's say I have a hundred cubes. They are in different random positions. All of these cubes move 100 units -z in 5 frames, then 50 units +x in 10 frames and goes like this. They all have identical animation but all of them start animating at different frames. At the moment I'm manually keying every single object. It's ok for couple of objects but when you're keying hundreds of them, it becomes pain.
Is there any way to make this task easier? I know I can duplicate the first object after animating it and offset its keys, that sure will be easier but since I have all my objects copied and positioned in place, so this is not an option. Also copy/paste animation will not work because it copies absolute values. I'd like to copy/paste it with relative values.
I have a script idea. This script will have 2 buttons. First button will copy animation of the selected object (including keys in visibility channel if they exist). Second button will paste that copied animation to the selected object starting at current frame. So I will select my animated object, press copy button, then select 2nd object, move time slider to desired position, press paste button, then select 3rd object and paste, etc.
I have no scripting experience so I dont know if it does make sense and easy to do. Any help is much appreciated, thanks in advance.
Let's say I have a hundred cubes. They are in different random positions. All of these cubes move 100 units -z in 5 frames, then 50 units +x in 10 frames and goes like this. They all have identical animation but all of them start animating at different frames. At the moment I'm manually keying every single object. It's ok for couple of objects but when you're keying hundreds of them, it becomes pain.
Is there any way to make this task easier? I know I can duplicate the first object after animating it and offset its keys, that sure will be easier but since I have all my objects copied and positioned in place, so this is not an option. Also copy/paste animation will not work because it copies absolute values. I'd like to copy/paste it with relative values.
I have a script idea. This script will have 2 buttons. First button will copy animation of the selected object (including keys in visibility channel if they exist). Second button will paste that copied animation to the selected object starting at current frame. So I will select my animated object, press copy button, then select 2nd object, move time slider to desired position, press paste button, then select 3rd object and paste, etc.
I have no scripting experience so I dont know if it does make sense and easy to do. Any help is much appreciated, thanks in advance.
