Anim manager alert when anim off and affect groups
2.3.0 - added: Animation manager buttons are colored red when objects have disabled animation - fixed: Animation manager not enabling/disabling Action Groups - fixed: Animation manager `List Disabled Anims` list groups as well
This commit is contained in:
+10
-1
@@ -415,6 +415,8 @@ class GPTB_OT_toggle_mute_animation(bpy.types.Operator):
|
||||
print(i, fcu.data_path, fcu.array_index)
|
||||
# fcu.group don't have mute attribute in api.
|
||||
fcu.mute = self.mute
|
||||
for g in act.groups:
|
||||
g.mute = self.mute
|
||||
|
||||
def execute(self, context):
|
||||
if self.selection:
|
||||
@@ -452,7 +454,9 @@ class GPTB_OT_toggle_mute_animation(bpy.types.Operator):
|
||||
class GPTB_OT_toggle_hide_gp_modifier(bpy.types.Operator):
|
||||
bl_idname = "gp.toggle_hide_gp_modifier"
|
||||
bl_label = "Toggle Modifier Hide"
|
||||
bl_description = "Show/Hide gp objects modifier (only touch modifier that are showed in render)\n(shift+clic to affect selection only)"
|
||||
bl_description = "Show/Hide viewport on GP objects modifier\
|
||||
\nOnly touch modifier that are showed in render\
|
||||
\nShift + click to affect selection only"
|
||||
bl_options = {"REGISTER"}
|
||||
|
||||
show : bpy.props.BoolProperty(default=True, options={'SKIP_SAVE'})
|
||||
@@ -521,6 +525,11 @@ class GPTB_OT_list_disabled_anims(bpy.types.Operator):
|
||||
act = o.animation_data.action
|
||||
if not act:
|
||||
continue
|
||||
|
||||
for g in act.groups:
|
||||
if g.mute:
|
||||
li.append(f'{o.name} - group: {g.name}')
|
||||
|
||||
for i, fcu in enumerate(act.fcurves):
|
||||
# print(i, fcu.data_path, fcu.array_index)
|
||||
if fcu.mute:
|
||||
|
||||
Reference in New Issue
Block a user