1
$\begingroup$

I'm getting it run every time I hover a mouse over the button. Isn't it a bug? I thought it must be executed just once on addon activation.

$\endgroup$
1
$\begingroup$

The ____init____() function for BPY types (especially UI stuff) can be unpredictable and should not be used. You likely want to be overloading the draw() method instead.

Example: http://www.blender.org/documentation/blender_python_api_2_57_release/bpy.types.Panel.html

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.