Hello, I’ve had some success getting shape keys out of Blender and into a CSV text format recently, but I’ve run into a problem that may take me awhile to solve. If anyone could be of assistance, I’d greatly appreciate it.
I’ll explain my goal first. I’d like to be able to export meshes from Blender, and then add shape keys to those exported meshes at a later date as I see fit by importing shape keys from Blender as csv files in another application. However, I’m going to export the models to PMX format, which means they will be triangulated and split, as the programs I’m exporting them for are designed to operate in real time.
This presents a problem to me because while I’ve figured out how to get the information I need to put into the CSV file for the mesh as it appears in Blender, when the mesh is exported, new vertices are created at UV seams. Because shape keys are highly dependent on vertex order, this throws a wrench into my entire plan. I need to know how to predict what the new vertex index order will be in order for this to work.
I’m guessing what the vertex order is after export is fully dependent on the programming of the exporter, so common sense tells me to study the exporter script. Am I wrong in this idea? Unfortunately, I am very new to Python and programming in general, so it’s not easy for me to tell what’s going on at all. The particular exporter I’m using is available for free here:
although it’s a little complicated to use and the instructions are written in Japanese.
In any case, if anyone thinks they could help a poor soul out I’d greatly appreciate it. Perhaps the best solution would be to simply split the mesh along its seams using the Edge Split modifier inside of Blender before exporting? Does anyone know for sure if the Edge Split modifier is 100% consistent in the vertex order it produces(using the split by sharp setting)? I really know almost nothing about vertex order in Blender.
But, ideally, I would like to be able to predict the vertex order that’s going to result from an export and use that information to simply make a csv file tailored to the exported model.
Apologies if I’ve been unclear.