This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
# This is your dictionary of vertex groups to be renamed. | |
vertex_groups = { | |
"lHand": "hand.l", | |
"rHand": "hand.r", | |
"BelowJaw": "BelowJaw", | |
"lForearmTwist": "c_forearm_stretch.l", | |
"rForearmTwist": "c_forearm_stretch.r", | |
"lForearmBend": "c_forearm_twist.l", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
context = bpy.context | |
if context.active_object: | |
obj = context.active_object | |
if obj.data.shape_keys: | |
for shape_key in obj.data.shape_keys.key_blocks: | |
shape_key.mute = True | |
else: | |
self.report({'ERROR'}, "The active object has no shapekeys.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bl_info = { | |
"name": "Mute/Unmute Shapekeys", | |
"author": "Fab3DX, Nabesaka, ChatGPT", | |
"version": (1, 0), | |
"blender": (3, 40, 0), | |
"location": "View3D > Tools > Mute/Unmute Shapekeys", | |
"description": "Mute and unmute shapekeys on the selected object", | |
"warning": "", | |
"category": "Object" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
import fnmatch | |
from shape_keys_plus import core | |
def find_and_select_shape_keys(pattern): | |
""" | |
Finds shape keys that match a given pattern and selects them using the Shape Keys Plus add-on. | |
:param pattern: The pattern to match shape keys against (e.g., 'Key*', '*left', etc.) | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
# Mapping of Genesis 9 bones to MakeHuman (MHX) bones | |
bone_mapping = { | |
"l_hand": "hand.twk.L", | |
"l_forearmtwist1": "forearm.bend.twk.L", | |
"l_forearmtwist2": "forearm.twist.twk.L", | |
"r_hand": "hand.twk.R", | |
"r_forearmtwist1": "forearm.bend.twk.R", | |
"r_forearmtwist2": "forearm.twist.twk.R", |