Traditional culture is gradually being forgotten in the process of modernization, leading to insufficient application of traditional elements in movies and animations, which in turn affects their artistic value and market performance. To avoid the dilemma of high and low development, Chinese film and animation production needs to find a healthier and more benign development path. Explored in this article is the application of traditional elements in AI driven film and television animations. To achieve this goal, in-depth research on element matching problems using a tensor canonical polyadic decomposition (CPD) model, sampling algorithm based on composite star structure, and maximum filtering method was conducted. Through these algorithms and models, a way to effectively utilize traditional elements in AI driven movies and TV animations can be found. This article provides new ideas and directions for the development of China's film and animation industry and offers new possibilities for the application of AI technology in the cultural realm.