These are scripts for importing/exporting Civ V graphics to/from Blender via the Nexus Buddy 2 tool and Civ VI graphics to/from Blender via the CivNexus6 tool.
* First version of .cn6 import/export scripts for Blender version 2.8, thanks to @sukritact.
* Don't create VERTEX_KEYS with original Normals, Tangents and Binormals if they are all identical e.g. Nexus Buddy 2 exported .cn6.
* CN6 Export: Don't use original normals if VERTEX_KEYS Vertex Group is deleted. This will now properly recalculate Binormals and Tangents when you export having deleted the VERTEX_KEYS Vertex Group.
* Fixed serious bug where .cn6 import was not dividing weights by 255 but was instead using the raw values. This meant that all vertex weights greater than zero would be equal to 1 when imported rather than properly scaled within the 0-1 range. This fix should mean that you can remove/add to animated meshes such as units and vertex weights will be properly preserved during the .fgx -> .cn6 -> Blender -> .cn6 -> .fgx round trip.
TL;DR - Vertex Weights were being mangled - now they are OK.
* Blender 2.7 CN6 Import: Bone names containing spaces can now be imported.
* Blender 2.7 CN6 Export: Incorporate Sukritact's fix for vertex bone weights not totalling 255.
* CN6 Export: Now exports one vertex for each vertex/UV coordinate combination in a similar way to the BR2 export script.
Changes to CN6 Export Script
* Default data for 2nd and 3rd UV Map so you don't have to create them manually.
* Added better exception handling.
* Add .cn6 import/export scripts for working with CivNexus6. Read more here.
Version 13.1 Changelog
* NB2 Import: Update all MAX_* values to allow complex models with 1000+ bones and many many vertices and triangles (e.g. Civ 6 Leaders) to be correctly imported to Blender.
* BR2 Export: Only export single World Bone if there is only one bone and it has the same name as the Armature. This will be case if the original .nb2 only had one bone. This is useful for correctly exporting anything that has just a single bone (e.g. Civ 6 unit weapons and helmets).
Version 13.0 Changelog
1. With both Blender 2.7+ and Blender 2.49 scripts it is possible to extract from .gr2 into Blender (via .nb2 format) and back into .gr2 from Blender (via .br2 format) without needing to use the FBX format at all. You can use the "Open BR2" function in Nexus Buddy 2.3.3 and all mesh and skeleton information should be preserved. You should only need to export to FBX if you are editing animations - even editing skeletons now works via .br2.
2. Mesh object names are now suffixed with "#M" to ensure that they have a different name to Armature objects. This was causing vertex groups to be deleted when importing objects using only a single bone which is most of the Resources, Improvements, Wonders, etc. Editing or replacing static 3D assets ought to be a lot more straightforward with this fix. I can simply import the mesh to Blender via .nb2 and then use BR2 overwrite to put my updated/replacement mesh back into the Wonder/Improvement/whatever .gr2 file.
Blender Scripts for Nexus Buddy 2 / CivNexus6 15.0
Import/export scripts for Blender to work with Nexus Buddy 2/CivNexus6 graphics tools for Civ 5/6.