Bakes the fluid simulation to generate a mesh object.
将流体模拟烘焙到生成网格对象中。
bpy.ops.fluid.bake_mesh()
无
{'FINISHED'}
操作成功完成# Importing the Blender module
import bpy
# Setting the active object to be the fluid domain
bpy.context.view_layer.objects.active = bpy.data.objects['FluidDomain']
# Baking the fluid simulation to generate the mesh object
bpy.ops.fluid.bake_mesh()
This operation needs an active fluid domain object in the scene.
此操作需要场景中存在一个活动的流体域对象。
After baking the mesh, the fluid simulation can no longer be edited.
烘焙网格后,无法再编辑流体模拟。
This operation can take a long time to complete, depending on the settings of the fluid simulation.
此操作的完成时间取决于流体模拟的设置,可能需要很长时间。