Skip to content

Instantly share code, notes, and snippets.

@CGArtPython
CGArtPython / copy_location_animation.py
Created September 18, 2022 06:41
Blender Python script that copies the location animation on the Z axis from one cube to another.
"""
Copy location animation on the Z axis from one cube to another.
This script expects that there are two cubes in the scene.
The first one named 'Cube' that has an location animation on the Z axis.
The second one named 'Cube.001'. We will be copying the animation from 'Cube' to 'Cube.001'.
"""
# give Python access to Blender's functionality
import bpy