animate1978 / MB-Lab

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

Skin Editor fails with new models #294

Closed animate1978 closed 3 years ago

animate1978 commented 4 years ago

Describe the bug

After producing the data and model library for a new model, such as in this case the Toon Girl model, even with Value nodes named correctly such as "skin_hue" or "skin_value", these are not available to edit in MB-Lab 1.7.8 Skin Editor.

To Reproduce Steps to reproduce the behavior:

Long complicated process to develop new character... after doing so and having the "humanoid_library.blend" file saved with the correct node names... reboot Blender and create new character... click on the Skin Editor button and the following error is produced as well as the lack of sliders in the Skin Editor of MB-Lab 1.7.8

Expected behavior With MB-Lab's default model sets, there are Value nodes that HAVE to be named things such as "skin_" for whatever purpose you deem fit for editing the shader in the Skin Editor.

These work for the default models, but do not with the testing of new models for future updates.

Screenshots buggy_skin_ed

Additional context

Went through the code and checked to make sure I have the correct node names.... the "skin_" names in the Value nodes are correct, they function properly with default MB-Lab models... not with NEW ones

Logs `rna_uiItemR: property not found: Object.skin_hue /home/farishta/.config/blender/2.82/scripts/addons/MB-Lab/init.py:2944

rna_uiItemR: property not found: Object.skin_sat /home/farishta/.config/blender/2.82/scripts/addons/MB-Lab/init.py:2944

rna_uiItemR: property not found: Object.skin_value /home/farishta/.config/blender/2.82/scripts/addons/MB-Lab/init.py:2944 `

animate1978 commented 3 years ago

Figured out why this happens, morph files were needed by the code first, now that a temp morph has been created for Toon Girl, the bug does not happen anymore.

Closing this now.