From 2797e6146c030cf935eee9858fe24ef7ba170c93 Mon Sep 17 00:00:00 2001 From: Spencer Killen Date: Sat, 14 May 2022 23:11:09 -0600 Subject: [PATCH] Add instructions --- bphys/README.md | 14 ++++++++++++++ bphys/baked_physics_to_pc2.py | 11 +++++++++++ 2 files changed, 25 insertions(+) create mode 100644 bphys/README.md 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 + """