Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Feature Request] Add functionality to bake from the command line #329
My rendering/baking pipeline is in the cloud, so much of my baking and rendering happens from the command line on a server, generally with some startup python script.
There is info here on how to bake blender's built-in fluids via Python: https://blender.stackexchange.com/a/728/53213
Could you write documentation on how to do this in Flip?
I didn't have functionality for baking from the command line in mind when writing the baking process so this is not possible within the addon at the moment, but it is a great idea to have this! I have added this functionality and it will be available in the next version (1.0.4).
If you want to try it out now, here's how (assuming you are currently using version 1.0.3):
You will need to replace the addon
For example, my bake_operators.py file is located here:
Once the file is replaced, a fluid simulation scene can be baked from the command line using the following script:
import bpy bpy.ops.flip_fluid_operators.bake_fluid_simulation_cmd()
using the same command as you would baking with the built-in fluid simulator:
Notes: This script will resume the fluid simulation from the last computed frame in the cache. If you want to reset the simulation cache, you may do so through the Blender scene as usual or by running the following script:
import bpy bpy.ops.flip_fluid_operators.reset_bake()
I will add this to the documentation after some further testing and closer to the release of the next version.
changed the title from
No documentation on how to bake via Python
[Feature Request] Add functionality to bake from the command line
Jun 8, 2018
Documentation for this feature has been added here: https://github.com/rlguy/Blender-FLIP-Fluids/wiki/Baking-from-the-Command-Line
This feature will be available in the next version update (1.0.4 available August 11th).