This tutorial is awesome - how to create constantly moving networks of nodes and connecting lines, which is such a cool effect. The line is created using a Beam effect, as this object has a start and an end point which can be defined as the position of two nodes ie. the beam ends will move in relation to the movements of the connected nodes.
This powerful effect in After Effects is such fun to watch!! Using masks to isolate the bouncing Ted, one mask fixed on the bed bounce area, the other mask is animated to the high and low points of his bouncing with keyframes (and then easy-eased).
No green screen at all! (Aside: interesting use of one string for head and one for each arm to give independence of movement ie looks alive)