For Toy Story 4, instead of creating all of the individual cobwebs by hand in the antiques store, Pixar created AI spiders that were programmed to spin the webs wherever the cobwebs needed to be. – WTF Fun Facts
Source: Pixar’s AI Spiders (kottke.org)