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

Set a BL_Order to all the panels so that the panels stay in the exact same order every time you load blender #121

Open wikid24 opened 10 months ago

wikid24 commented 10 months ago

Hi,

Me again. This seems like such a small thing, but I cannot ever find the same panel I am looking for in MMD Tools because it changes position every time I load blender or load a new .blend file.

Sometimes the panel I am looking for is on the top, sometimes it is on the bottom, but it is never in the exact same place... Is it possible to set a bl_order so that the panels will stay in the exact same place all the time? It doesn't matter what the order is to me, as along as they are always in the exact same place.

image

https://docs.blender.org/api/current/bpy.types.Panel.html#bpy.types.Panel.bl_order

Thank you!

wikid24 commented 10 months ago

example of me using this code on my ffxiv mmd tools helper addon to make sure the panels always stay in the exact same order: https://github.com/wikid24/ffxiv_mmd_tools_helper/blob/master/ffxiv_mmd_tools_helper/panels.py

UuuNyaa commented 10 months ago

Thanks for the suggestion 😀 I will specify the panel orders in #117

UuuNyaa commented 3 months ago

I adopted the following order:

  1. Scene Setup
  2. Model Setup
  3. Model Production
  4. Morph Tools
  5. Bone Order
  6. Rigid Bodies
  7. Joints
  8. Meshes Sorter
  9. Material Sorter
  10. Display Panel