[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37260] trunk/blender/source/blender: Support for update callbacks in python defined RNA properties as discussed last meeting .

Daniel Salazar - 3Developer.com zanqdo at gmail.com
Sat Jun 25 03:20:33 CEST 2011


Indeed it's weird.. see this example with a driver based on
scene.frame_current. It will not update on frame change but it can be
tricked to do so by adding a variable pointing to an object (even to
itself) with an object level property animated. In this case I
inserted a keyframe on bounding box display type! :p after that it
will correctly update on frame change.. even if the variable isn't
even used in the expression

http://www.pasteall.org/blend/7167

what's going on?

cheers to you two!

Daniel Salazar
3Developer.com



On Fri, Jun 24, 2011 at 7:06 PM, Matt Ebb <matt at mke3.net> wrote:
> On Tue, Jun 7, 2011 at 3:50 AM, Campbell Barton <ideasman42 at gmail.com>wrote:
>
>> Revision: 37260
>>
>> http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37260
>> Author:   campbellbarton
>> Date:     2011-06-06 17:50:20 +0000 (Mon, 06 Jun 2011)
>> Log Message:
>> -----------
>> Support for update callbacks in python defined RNA properties as discussed
>> last meeting.
>> This means script authors can perform actions using these callbacks rather
>> then on drawing which puts blender in a readonly state.
>
>
> Late reply, I'm just getting some time to look into editing scripts to use
> this and wanted to say thanks for this Campbell, it's great. Just to
> clarify, is this implemented as a proper RNA update function which will act
> exactly like any other C-defined ones? If so, that's great, but useful
> either way.
>
> Probably worthwhile bringing up this issue again too (certain rna properties
> not running update functions in animation system), since it may be affected:
> http://lists.blender.org/pipermail/bf-committers/2010-November/029482.html
>
> cheers,
>
> Matt
> _______________________________________________
> 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