animate1978 / MB-Lab

MB-Lab is a character creation tool for Blender 4.0 and above, based off ManuelBastioniLAB
Other
1.83k stars 315 forks source link

Just an idea, about tabs #249

Closed TetoTheSquirrelFox closed 4 years ago

TetoTheSquirrelFox commented 4 years ago

I was working on a tool tonight, and I thought about something during tests and debugging.

For the moment there are 2 tabs :

While I was testing things this evening, I was thinking that tools that are available since the beginning (below) don't really fit here, because there tools used AFTER finalization, and dialogs to load a finalized model are also there. The tools disappear when shaping the model, come back after finalization, it's not obvious or very user friendly, imho. image The problem here is that part will grow a lot if the addon expends as intended. Hair technics, clothes, objects or new technics to use a model after finalization.

So I was thinking that maybe it would be interesting to have in fact 3 tabs :

I think that it would be interesting to do that because we would have a clear separation between tools BEFORE finalization and AFTER. And a good separation between the "basic" user and the creator that wants to make a model from A to Z.

Feel free to say that it's stupid, I won't be mad. ^^ Just a thought I had tonight.

animate1978 commented 4 years ago

Actually that does sound like a good idea.

I think it would have to remain 3 tabs at most, I think people will still complain because the N panel tend to get crowded with addons. However in this instance MB-Lab is BIG, in size and complexity so differentiating between the tasks would, I think, overshadow that it would take up 3 tab spaces.

TetoTheSquirrelFox commented 4 years ago

If it's possible, we could have the MB-Lab disappear when the user finalizes his character, or when he loads one, and MB-Final shows up... then disappears when user starts a new session. MB-Dev would be just an option in the properties. So just one tab in general (MB-Lab/MB-Final) and a 2nd one in option.

animate1978 commented 4 years ago

So I have an idea... instead of new tabs which I think would upset users... what about doing similar to the "View" Tab... new_gui_example

One for MB-Lab, another for 'MB-Dev/Gen' (MB-Crea) and we can split up the Creation tools and After Creation tools this way too maybe? I don't know I have to look through some files first.

TetoTheSquirrelFox commented 4 years ago

Yep, for example, that looks very good actually. And the best of the best would be to have the content of many tools under this form : image But it's a LOT of work I think... ^^

animate1978 commented 4 years ago

So I managed to get some code working for this idea...

new_gui_shot_01 new_gui_shot_03

` class VIEW3D_PT_tools_MBCrea(bpy.types.Panel): bl_label = "MB-Crea {0}.{1}.{2}".format(bl_info["version"][0], bl_info["version"][1], bl_info["version"][2]) bl_idname = "OBJECT_PT_characters02" bl_space_type = 'VIEW_3D' bl_region_type = 'UI' bl_context = 'objectmode' bl_category = "MB-Lab" bl_options = {'DEFAULT_CLOSED'}

@classmethod`

I changed the bl_category to MB-Lab and then added the bl_options, which then closes that window on startup.

TetoTheSquirrelFox commented 4 years ago

Damn cool ! ^^ And so easy to do. Just two lines ! ^^