diff --git a/bphys/README.md b/bphys/README.md new file mode 100644 index 0000000..a693c51 --- /dev/null +++ b/bphys/README.md @@ -0,0 +1,14 @@ +A frankenscript that converts baked softbody physics data to a pc2 file + +Tested in Blender 3.3 2a2261d7 Linux x86_64 + +Instructions: +1. Create desired physics animation using a lattice and softbody physics modifier. +2. Bake the animation and enable "save to disk". Note the folder named blendcache_library. +3. Record the x y z scale of the lattice in a file (e.g. named lattice_scale) One dimension per line +4. Run this script: python3 baked_physics_to_pc2.py < lattice_scale +5. Create a new lattice with the same scale and dimensions +6. Add a Mesh cache modifier to the lattice (don't have physics) and use the .pc2 file outputted by the script + + +See file for sources \ No newline at end of file diff --git a/bphys/baked_physics_to_pc2.py b/bphys/baked_physics_to_pc2.py index d6576db..53a5de4 100644 --- a/bphys/baked_physics_to_pc2.py +++ b/bphys/baked_physics_to_pc2.py @@ -2,6 +2,17 @@ """ A frankenscript that converts baked softbody physics data to a pc2 file + +Tested in Blender 3.3 2a2261d7 Linux x86_64 + +Instructions: +1. Create desired physics animation using a lattice and softbody physics modifier. +2. Bake the animation and enable "save to disk". Note the folder named blendcache_library. +3. Record the x y z scale of the lattice in a file (e.g. named lattice_scale) One dimension per line +4. Run this script: python3 baked_physics_to_pc2.py < lattice_scale +5. Create a new lattice with the same scale and dimensions +6. Add a Mesh cache modifier to the lattice (don't have physics) and use the .pc2 file outputted by the script + """