I am making a procedural material. I wanted to animate the
scale value. I wanted to animate in such a way that the scale value changes to the
frame number every time the frame number is a multiple of 10, so I scripted the following:
import bpy frame_num = bpy.context.scene.frame_current if frame_num % 10 == 0: bpy.data.materials["noise"].node_tree.nodes["White Noise Texture"].inputs.default_value = frame_num
Run the script it works as intended. But when I do not know how to link this script to the Animation. How do I run the script for each frame?