I'm trying to make an animated model of the lungs breathing naturally. I have two separately meshes and I want to merge them together in a single model.
The first model is the lung surface (the ribcage) with the external motion animation. It dilates and contracts when breathing. The frames were created using shrinkwrap shapekeys.
The second model are the airways and blood vessels with the internal motion animation. The frames were created using an armature that deforms these internal structures. However, this movement does not consider the external motion from the ribcage, which leads to strange behavior near where the lung surface would be.
My question is, is there a fast way to use the first model (the lung surface) as a constraint for the second model? For example, in places near the surface, the mesh from the second model would follow the surface and deforms instead of following the internal motion pattern.
*EDIT Thanks for the replies. I don't think I was very clear about the problem, I have close to zero expertise with blender so I'm quite lost with the tools availiable. I will be adding some information and an image to get a better idea of what I'm trying to do. I will try the shrinkmap method meanwhile.
Initially I had only the second model (the one with the airways and the blood vessels). The motion pattern (and deformation) is calculated using a 3rd party software, creating the armature for the airways (in cyan in the image). While near the airways the blood vessels (the colored objects) are fine, at the endpoints I must consider the lung surface movement, more than the motion pattern from the armature. As it is the endpoints behaves incorrect, even piercing the rib cage at some locations.
What I was trying to do was creating an animation of the rib cage moving, and then merging this rib cage model with my armature, adding new constraints to it. Is it possible to combine these two somehow? I thought about using hooks but it would take quite a long time to do manually, since I would have to fix every endpoint of the blood vessels to a correspondent location at the rib cage model. Also, I'm using real CT data so the way the 3rd party software calculates the armature unfortunately cannot be changed