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

Campbell Barton ideasman42 at gmail.com
Fri Jul 3 17:08:56 CEST 2015


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


More information about the Bf-committers mailing list