I need to keyframe thousands of frames. First I would like to keyframe the visibility for 1 object for all frames with the same value (let's say that I need to hide an object on all keyframes but I need the data_path=hide_viewport really keyframed to True I can't use the interpolation, it has to be keyframed for every frame.
I can do this through loop like this:
obj.hide_viewport = True
for kf in (start, end + 1):
But this needs to loop through all of the keyframes just to set the same value. Is there an option to set the same value to let's say an array of keyframes so that loop is not necessary? This would greatly speed up the execution.