Information Panel: How to Update It?

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

toxikman
Posts: 12
Joined: Thu May 17, 2012 7:15 pm

Information Panel: How to Update It?

Postby toxikman » Wed Jun 27, 2012 10:59 pm

I've got a simple panel that attaches to the 3D view (bl_space_type=VIEW_3D) information panel (bl_region_type=WINDOW). It displays only in pose mode.

I want the panel to display some custom information about the selected pose bones. I generate this information in the draw() function of the panel and display it using row.label().

However, the information does not update when I change the selected pose bones. How do I get the panel to redraw itself in this case?

Thanks! :D

toxikman
Posts: 12
Joined: Thu May 17, 2012 7:15 pm

Postby toxikman » Wed Jun 27, 2012 11:18 pm

Never mind - it seems adding a poll() function did the trick.


Return to “Python”

Who is online

Users browsing this forum: No registered users and 2 guests