ssbucarlos / smash-ultimate-blender

Blender Plugin containing utilities for Smash Ultimate Models and Animations.
45 stars 9 forks source link

Add UpdateBoneList #100

Closed FatherOfEgg closed 2 years ago

FatherOfEgg commented 2 years ago

Here's a quick demo

I added bpy.ops.wm.save_mainfile() to BuildBoneList, because it wouldn't build another bone list unless I saved (At least for me anyway).

ScanMountGoat commented 2 years ago

Thanks for making a video to help clarify what this is changing. It may be confusing for some people to see both "rebuild" and "update" since it sounds like they do the same thing. One approach is to have "Rebuild Bone List" work like what you showed in the video and have a separate "Clear Bone Pairings" button that updates the list of bones and also removes the paired bone names. If the changes to the armature aren't being reflected when rebuilding, that's definitely a bug that we need to fix.

I'll look into this some more to see what's causing the issue and let you know if there are any changes you need to make. It should be possible to do this without saving the entire Blender file.

FatherOfEgg commented 2 years ago

I think I fixed the issue where my list wasn't rebuilding. I had to enter object mode at least once to make it recognize the difference.

ScanMountGoat commented 2 years ago

It's working fine for me. I'd like to look into making the pairing process more robust and adjusting the names of the buttons in the future, but that doesn't need to block this PR. Thanks for adding this.