UuuNyaa / blender_mmd_tools

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

Rgxa contrib #101

Closed rgxa closed 1 year ago

rgxa commented 1 year ago

Hello, I added some functions and features. The primary changed files/functions are:

  1. utils.py: added functions for getting the active object, setting the active object, and a function for filtering objects
  2. operators.model.CreateMMDModelRoot: added functionality for auto-parenting and weighting meshes on MMD Model object creation(the Create Model button)
  3. 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 hiding them all off by hand(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'm sorry, I see that I'm pushing to the wrong branch. I'm closing this.