[Bf-python] finding correct operator poll context

Dima Glibitsky dima.glib at gmail.com
Fri Jun 14 22:24:00 CEST 2013


As far as I know, there's no other way than to look at the operator's
source code... Though maybe some operators have the requirements
explained in their poll()'s docstring?

On Fri, Jun 14, 2013 at 11:18 PM, Bassam Kurdali <bassam at urchn.org> wrote:
> Hi folks,
> when running a script recently I received the error:
> RuntimeError: Operator bpy.ops.wm.quit_blender.poll() failed, context is
> incorrect
>
> Here I would like to override the context and satisfy the operator,
> however:
>  I don't know what is the failing check, and I don't even know where to
> look.
>
> So is there any wisdom as to finding this out?
> a- for python operators,
> b- for c operators ?
>
> Is this possible to include in the operator docs, or would it be two
> big?
> cheers,
> Bassam
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python



More information about the Bf-python mailing list