Add AMFOWSH

Add apply modifier for object with shapekeys tool
This commit is contained in:
989onan
2025-04-03 02:45:39 -04:00
parent 71b22813a8
commit f28e1866a9
4 changed files with 155 additions and 0 deletions
+12
View File
@@ -535,6 +535,18 @@ def add_armature_modifier(mesh: Object, armature: Object) -> None:
modifier: Modifier = mesh.modifiers.new('Armature', 'ARMATURE')
modifier.object = armature
def get_modifiers(self: Optional[Any] = None, context: Optional[Context] = None) -> List[Tuple[str, str, str]]:
returned: List[Tuple[str, str, str]] = []
if context.active_object == None:
return returned
if context.active_object.type != "MESH":
return returned
for mod in context.active_object.modifiers:
returned.append((mod.name,mod.name,""))
return returned
def get_shapekeys(context: Context,
names: List[str],
is_mouth: bool,