I try to playback different video clips one after the other on a mesh face using keyframes.
I achived pretty interesting result with changing material offset of a solidify modifier by
keyframe with python. I used this modifier because the model texture is not animatable.
screen = bpy.data.objects['TvScreen'] mod = screen.modifiers['Solidify'] mod.keyframe_insert(data_path="material_offset", frame=currentFrame, group='CurrentVideo')
The problem is that all clips inside materials are playing at the same time. Which on the one hand freeze my Blender and on the other hand I have no control over the movie image frame sequence timing.
I tried to set a
frame_start in my script but this property is not animatable.
TypeError: bpy_struct.keyframe_insert() property "frame_start" not animatable.
I also tried to mute the image texture note of all materials and unmute them by keyframe. This fixes the GUI freeze effect but video squences still playing in background.
So the final question is "How to start and stop movie sequence of image node at specific frame of mp4 by keyframe in final rendering in python script?".
Maybe there is a much better way to achive this "virtual TV model" in blender. Any tips are welcome.