Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blender_mesh.armature_name doesn't match blender_armature keys #25

Open
kevzettler opened this issue Dec 19, 2021 · 1 comment
Open

Comments

@kevzettler
Copy link
Contributor

I'm using the rust API to export a mesh and armature. The BlenderMesh.armature_name() output is: "armature":"PS1 Boy"

The keys on Result<HashMap<&str, &BlenderArmature> structure look like:
{"Boy.001": BlenderArmature { name: "PS1 Boy.001",.

These don't match what i'm seeing in the blender file. Seems there is a .001 appended?
image

@chinedufn
Copy link
Owner

Yeah sorry.

Right now the export process duplicates your armature before transforming and then exporting it.

https://github.com/chinedufn/landon/blob/master/crates/iks-to-fks/convert-ik-to-fk.py#L86-L93

Blender automatically appends a .001 to the names of the duplicated armatures.

So in your exported data you're seeing the names of that duplicated armature, not your original one.


It'd be nice to have the landon solve for this (perhaps by renaming the duplicated names back to the originals or something..)

But as a quick hack you can just trim the .001 from the names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants