В этом видео разберемся, как можно использовать модификаторы на коллекциях анимированных объектов в Blender!
Скрипт:
import bpy
for mat in bpy.data.materials:
if mat.use_nodes:
for n in mat.node_tree.nodes:
if n.type == "TEX_IMAGE":
n_attr = mat.node_tree.nodes.new("ShaderNodeAttribute")
n_attr.attribute_name = "UVMap"
n_attr.location = n.location
n_attr.location.x -= 250
mat.node_tree.links.new(n.inputs[0], n_attr.outputs[1])
Модель города из видео:
https://www.blendswap.com/blend/27360
https://t.me/blender4motion