是否可以为插入关键帧transform.offset_x通过python脚本(或python脚本)创建属性。我想为序列器中的所有图像条插入位置关键帧。我尝试了下面的代码,但是得到了一个错误“TypeError:bpy”_struct.keyframe_插入()财产“transform.offset_x“未找到”。在
scene = bpy.context.scene
queue = scene.sequence_editor.sequences
for i in queue:
itemType = i.type
itemLead = i.frame_offset_start + i.frame_start
if itemType == "IMAGE":
i.keyframe_insert(data_path='transform.offset_x', frame=itemLead)
使用
transform.keyframe_insert(data_path='offset_x')
代替'transform.offset_x'
的data_path
相关问题 更多 >
编程相关推荐