[Bf-committers] Add-on stop working in 2.75 (callback_add disapears?)

Campbell Barton ideasman42 at gmail.com
Sat Jul 4 04:47:49 CEST 2015


Hi Raul, as pointed out this should have been in release notes, added.

http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.75/Addons#Python_API

On Sat, Jul 4, 2015 at 1:57 AM, Raul Valadez Estrada
<raul.valadez at gmail.com> wrote:
> Thanks a lot Campbell!!!!, now it is working :) , sorry I didn´t realize it
> was removed, I´d try to find it on the API changes Sergey and I didn´t find
> it, but maybe I didn´t look well, sorry to bored you guys, thanks a lot
> again!!!!
>
> Blender RULES!!!
>
> 2015-07-03 10:25 GMT-05:00 Sergey Sharybin <sergey.vfx at gmail.com>:
>
>> Hi,
>>
>> Are the API changes listed in the release notes page?
>>
>> On Fri, Jul 3, 2015 at 5:08 PM, Campbell Barton <ideasman42 at gmail.com>
>> wrote:
>>
>> > This has been removed, since its been deprecated for some time now, see:
>> >
>> >
>> http://www.blender.org/api/blender_python_api_2_66_release/bpy.types.Region.html?highlight=callback_add#bpy.types.Region.callback_add
>> >
>> > On Fri, Jul 3, 2015 at 11:47 PM, Raul Valadez Estrada
>> > <raul.valadez at gmail.com> wrote:
>> > > Hi guys, sorry to bored you, but I can´t find an answer out there, I´m
>> > > working on a new add-on, but now in 2.75 stop working, Did syntaxis
>> > change?
>> > >
>> > > ERROR:
>> > > *AttributeError: 'Region' object has no attribute 'callback_add'*
>> > >
>> > > CODE:
>> > >
>> > > *for region in bpy.context.area.regions:*
>> > > *                if region.type == "WINDOW": handle =
>> > > region.callback_add(redraw, (), 'POST_VIEW')*
>> > >
>> > > It was working flawless in version 2.74, the way of do this has change?
>> > >
>> > > Regards guys, I hope you can help me.
>> > >
>> > > Thanks a lot!
>> > >
>> > > --
>> > > May the GeForce be with you!
>> > >
>> -------------------------------------------------------------------------
>> > > http://www.raulvaladez.com
>> > > http://www.flickr.com/photos/rave_n
>> > > _______________________________________________
>> > > Bf-committers mailing list
>> > > Bf-committers at blender.org
>> > > http://lists.blender.org/mailman/listinfo/bf-committers
>> >
>> >
>> >
>> > --
>> > - Campbell
>> > _______________________________________________
>> > Bf-committers mailing list
>> > Bf-committers at blender.org
>> > http://lists.blender.org/mailman/listinfo/bf-committers
>> >
>>
>>
>>
>> --
>> With best regards, Sergey Sharybin
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
>
>
>
> --
> May the GeForce be with you!
> -------------------------------------------------------------------------
> http://www.raulvaladez.com
> http://www.flickr.com/photos/rave_n
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



-- 
- Campbell


More information about the Bf-committers mailing list