Closed leotorrez closed 9 months ago
While it is impressive that ChatGPT was able to do this conversion, as as pretty typical for it, it has made a number of mistakes that I'll need to take a closer look at when I get back home:
I also need to check what happens to the vertex layers if Blender 4.0 opens a Blender 3.x blend file
seems like you can define custom attribute ? have not looked much at it
Yeah, I think this is what we should be using, the point domain should be fairly equivalent to vertex layers - looks like it was added in 3.0, so there are a number of versions where either attributes or vertex layers could be used: https://docs.blender.org/manual/en/latest/modeling/geometry_nodes/attributes_reference.html
I've pushed up a change to use custom attributes on 4.x, while retaining backwards compatibility with Blender 3.x vertex layers.
This has only been lightly tested, so please let me know if you encounter any issues with them.
Surprisingly migrating a .blend file saved with Blender 3.x to Blender 4.x appears that it might "just work", because in Blender 3.x vertex layers were already showing up in the mesh attributes, and since I haven't changed the names the script will just find them there when exporting in 4.x. That said, if anyone encounters issues doing this, it might be worth just re-importing the mesh, either from raw buffers exported with 3.x, or a frame analysis dump.
Good afternoon, the recent update has removed vertex attributes in the form that are used in the plugin in favor of their attribute api. I Chat-GPT'd my way through the issue to try and find a solution myself and arrived to color_attributes.
here are the 3 functions I've updated with the suggested code. I don't comprehend in full what the tool is doing in all these steps hence why I didn't go for a pull request. But here are the 3 functions I had to update in order to make the export work once more.
Apologies if this was already taking into consideration before the time of my post.
Blender 4.0 Patch Notes: https://wiki.blender.org/wiki/Reference/Release_Notes/4.0/Python_API