I would like to animate a heart pumping (Realistically) like this video below.
Does anyone know a Python script (it can be animated, does not have to be Python) or can point me in the right direction for this?
I already created the heart.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.
Sign up to join this communityI would like to animate a heart pumping (Realistically) like this video below.
Does anyone know a Python script (it can be animated, does not have to be Python) or can point me in the right direction for this?
I already created the heart.
An animation of a beating heart can be generated using a fixed geometry and armatures to animate the beating. This method is a way to generate the complex motion by animating a few elements.
(Geometry from Blendswap.com - courtesy Bruno Laurencich/elZancudo)
Procedure:
Select all of the bones and join them into a single armature. This can be done using ctrl+J after selecting all of the bones.
The armature is connected to the mesh using automatically calculated weights (see armature automatic weights). This allows each bone to affect only part of the mesh in the heart. This is done by selecting the mesh, then the armature, then hitting ctrl+P. The menu which appears will have an option for armature deform with automatic weights. Select that option.
This will automatically setup all of the weights for the different bones on the mesh. The weights for the 4 bones in the heart are shown below. For finer control, the weights can be edited.
To keep the rest of the heart still the other bones are affecting the veins and arteries. One of these is shown.
You need shape keys.
Model the object (you have done that already). Add two shape keys. Select the second and edit the heart to be in the other beating position. In object mode drag the "Value" slider up and down. See how the heart changes between the two shapes. Add more shapes if you need. Select each new key and edit the heart.
When you have enough shape keys, you can keyframe between them.