取消当前文件操作。
bpy.ops.file.cancel()
无。
无。
import bpy
bpy.ops.file.open(filepath="//my_folder/my_file.blend")
bpy.ops.file.cancel()
在上面的示例中,我们首先尝试打开文件 //my_folder/my_file.blend
,然后通过 bpy.ops.file.cancel()
方法取消了当前的文件操作。
无。
如果在 bpy.ops.file.cancel()
调用之前不存在任何文件操作,则此方法将不会执行任何操作。