Skip to content

Instantly share code, notes, and snippets.

View nabesakarenders's full-sized avatar

nabesakarenders

View GitHub Profile
@nabesakarenders
nabesakarenders / MuteShapeKeysWithFiltering.py
Created January 3, 2024 15:49
Shows a little panel to mute shape keys matching a specific filter. Mutes all if no filter set. Made with the help of ChatGPT because my Python sucks!
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"
}
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.")
@nabesakarenders
nabesakarenders / Daz2ARPVG.py
Created November 6, 2023 13:01
Convert DAZ vertex groups to Auto Rig Pro
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",