smokejohn / SKkeeper

Blender Addon to automate the process of applying subdivision surface modifiers to models with multiple shapekeys
GNU General Public License v3.0
218 stars 10 forks source link

Skeletal Mesh loosing all Shape Key Drivers #2

Open boss7000 opened 3 years ago

boss7000 commented 3 years ago

My Genesis 8 skeletal body mesh is loosing all shape key drivers (formula with parameters and numbers, see Daz3d) after applying subdivision.

smokejohn commented 3 years ago

Thank you for you interest in the project and for reaching out to me.

Currently the code does not take drivers into account. To be honest this is not an area where I have a lot of expertise (Rigging, Drivers). So detailed information what exactly your setup is and an example blender scene file would help a lot. If you would be so kind to supply a simple file for testing, I would be very grateful. The simpler the file is, the better.

You can attach files to a comment by dragging and dropping or clicking under the dotted line and select one from your filesystem.

boss7000 commented 3 years ago

I've prepared a .blend test file with a full character that has bone driven shape keys and a subdivision modifier (not applied), where you can see how the drivers are made: Go to "edit driver" and you will see things like: [0 if x< 1.385 else x-1.385 if x< 2.385 else 1 for x in [+0.881*A]][0] with input variables, object, bone, type, mode space.... It's just a formula with parameters. It's possible to copy it manually (copy driver) from one non-subdivided character to a subdivided one (paste driver), but if you have around 100 of them, it takes too long to copy everything manually and you could make mistakes by confusing lines during the manual copy/paste etc. For seeing how the drivers get lost you just need to "apply chosen modifier (keep shapekeys)" -->"subdivision". I've packaged the .blend into a zip because github doesn't accept blender files. To open it you need the newer blender version (2.91 etc.)

gen_8_male_test.zip