how to delete an animation ID block, i mean after deleting the keys there still animation groups and blocks, and i don’t like that, it misses up with viewing my animation :spin:
shift click the X in the action editor
it will then delete it permanently on save
no i don’t mean the action or animation, but the group name itself that wont delete
Nothing in blender deletes …
Not true at all, but a first thing to remember. Its for those blender-settings like animation-things, materials, images, …
Everything in blender marked “F” will be saved and everything
not marked “F” will be saved as long as there are other “Objects”
still using it.
For an animation, … whats an animation? The action? The nla? The fcurve?
(did i forget one?)
For example look at an ACTION - if an action has still users (check the count
of users) it cannot be deleted (= it will always be saved and therefore restored at reload).
But even if an action has no users … -he, what a funny thing, (they dont count this as a user) - the action will saved if it is used in the nla-editor with the red-asterisk-like-flower-symbol (that symbol you have to click to make a nla-strip out of it …).
Similiar for other things, like materials, textures, …(what else… the whole bunch of parenting things …).
So, if an blender-object(see above, animation, material, image…) has no more users and you save the file - then on re-loading it, the object will be gone. Next funny thing, if you see only one of those objects disappear … and you have to redo this step several times to make another object disappear at every save-reload-step …
-!- then you can be shure, those objects had setup some relation/dependency, which only get free if the last one in the line of dependencies is deleted … and then the next one can removed …
Yeah bat3a deleting group names could be tricky the animation_data_clear() method may do it but it’s a pretty comprehensive killer that needs to be used with care in my experience.
Looking at the API doc there is a remove method on the ActionGroups collection.
remove(action_group)
Remove action group.
Parameters
• action_group (ActionGroup, (never None)) – Action group to remove.
thank you guys
@batFinger can you give the address of this api page, or can you show how to use this action in console
i tried to make a function of it but !!!, i need to see how to use remove with this function???, i’ll post this in python section
Simple file, one action on cube ‘CubeAction’ keyframed with LocRotScale (which becomes the group name)
>>> ag = bpy.data.actions['CubeAction'].groups[0]
>>> bpy.data.actions['CubeAction'].groups.remove(ag)
And whallah it is gone… you could also index using groups name i suppose and check against groups you don’t want to remove. Thinking groups could have good application with the mocap madness i’m putting together to mask out walks arm movement etc, so this is a handy thing to know… I’m going to get NLA lipsync off the backburner soon. Kudos on your shapekey lipsync.
@batfinger thanks for your answers, but here is a picture of what i talk about
the problem is how to select main node (in red) and delete it
Attachments
the object.animation_data_clear() method will take it all out.
OK man thanks (that’s what i’m talking about)