[Bf-committers] Why is use fake user not default for actions?

CoDEmanX codemanx at gmx.de
Mon Sep 10 22:42:24 CEST 2012


I agree.

However, this can be fixed with a simple addon, core code:


from bpy.app.handlers import persistent

# Auto-enable fake user to rescue unused actions
@persistent
def fakeuser_for_actions(scene):
     for action in bpy.data.actions:
         action.use_fake_user = True


This addon needs to be enabled by default to ensure it always sets the 
fake user!

Am 09.09.2012 02:41, schrieb Alberto Torres:
> The idea of users make sense with datablocks that are *used*. Most of
> them are always used. Actions aren't (unless you *always* use the
> NLA). It is usual that you just have a library of animation cycles
> ready to use or for a game. IMHO that's the reason actions should go
> back to fakeuser-by-default.
>
> DiThi
>
>
> 2012/9/8 patrick boelens <p_boelens at msn.com>:
>>
>> I think this was initially done so as to stay consistent in handling fake users; it now acts the same as for materials, textures, etc. However, I've also seen this being discussed before, and I think the consensus then was to roll-back to the old "fake-by-default", though I could be wrong here. Either way, I agree the old system might be best for this. User experience/ frustration > consistency imo. =
>>
>> -Patrick
>>
>>> Date: Sat, 8 Sep 2012 12:50:29 -0700
>>> From: dfelinto at gmail.com
>>> To: bf-committers at blender.org
>>> Subject: Re: [Bf-committers] Why is use fake user not default for actions?
>>>
>>> I know blender tries to stay popup-free, but a warning when
>>> selecting/creating actions may solve that
>>>
>>> ("No datablock linked to action 'Run'. if you don't set FakeUser the action
>>> will be deleted")
>>>
>>> We got more than one "bug" report for that as well, so it may be fair to
>>> consider the current design not clear for (new) users.
>>>
>>> Dalai
>>> On Sep 8, 2012 12:41 AM, "Mitchell Stokes" <mogurijin at gmail.com> wrote:
>>>
>>>> Hello devs,
>>>>
>>>> It used to be that use_fake_user was default for action datablocks.
>>>> Sometime in the last version or two, this stopped being the case. Now
>>>> we get forums posts on people losing their animations[0][1]. Lost data
>>>> is never a good thing, so what was the reason for it being off by
>>>> default?
>>>>
>>>> Cheers,
>>>> Mitchell Stokes
>>>>
>>>> [0] http://blenderartists.org/forum/showthread.php?265132-Lost-Animations
>>>> [1]
>>>> http://blenderartists.org/forum/showthread.php?258161-Problems-with-actions
>>>> _______________________________________________
>>>> Bf-committers mailing list
>>>> Bf-committers at blender.org
>>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>>
>>> _______________________________________________
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list