Shapey Key Update.
- Viesmes will now use selected armature. - New dropdown menu in the viseme UI so the user can select which mesh to create visemes on. - New helper function get_armature_meshes - Added a new check before we create the new visemes to see if any exist, if there do we will remove them and create the new ones. - fixed several issues and errors.
This commit is contained in:
+7
-1
@@ -2,7 +2,7 @@ import bpy
|
||||
|
||||
from ..functions.translations import t, get_languages_list, update_language
|
||||
from ..core.addon_preferences import get_preference
|
||||
from .common import get_armatures
|
||||
from .common import get_armatures, get_mesh_items
|
||||
|
||||
def register() -> None:
|
||||
default_language = get_preference("language", 0)
|
||||
@@ -14,6 +14,12 @@ def register() -> None:
|
||||
default=default_language,
|
||||
update=update_language
|
||||
)
|
||||
|
||||
bpy.types.Scene.selected_mesh = bpy.props.EnumProperty(
|
||||
items=get_mesh_items,
|
||||
name="Selected Mesh",
|
||||
description="The currently selected mesh for viseme operations"
|
||||
)
|
||||
|
||||
bpy.types.Scene.avatar_toolkit_language_changed = bpy.props.BoolProperty(default=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user