UuuNyaa / blender_mmd_tools

MMD Tools is a blender addon for importing/exporting Models and Motions of MikuMikuDance.
GNU General Public License v3.0
2.18k stars 102 forks source link

add extra configuration for model selection on export and ability to … #102

Closed rgxa closed 1 year ago

rgxa commented 1 year ago

It seems like I did a pull request for the wrong branch a moment ago, so I'm redoing it. Sorry if it was trouble. Hello, I added some functions and features. The primary changed files/functions are:

utils.py: added functions for getting the active object, setting the active object, and a function for filtering objects
operators.model.CreateMMDModelRoot: added functionality for auto-parenting and weighting meshes on MMD Model object creation(the Create Model button)
operators.fileio.ExportPMX: added functionality for exporting based on object properties such as selection state or active state.

They are all minor details, because I don't want to change much at first, but #3 is the most important in my opinion. I believe many people(including myself) generally only want to export the active object and not every visible object, and if many objects are visible, then manually hiding them all(and revealing again after export) can be very tedious at times. The default is currently "active" because I simply forgot to change it back to the original default of "visible".

Thanks for your time. Please let me know if you'd like me to change the implementation details.

rgxa commented 1 year ago

I found some potential bugs so I'm closing for now, sorry.