6
$\begingroup$

I create a auto setup matcap texture addon and i'd like to know if it should be possible to "require" blender to update N panel. Got a template_preview and it should be great that it refresh automaticaly. If it really not possible, is it possible to get the texture list box or did i have to create my own texture list ?

$\endgroup$
6
$\begingroup$

Use Region.tag_redraw on the corresponding region. The region type of the T-Panel is 'TOOLS' and the type of the N-Panel is 'UI'.

I.e.

for region in context.area.regions:
    if region.type == "UI":
        region.tag_redraw()
$\endgroup$
  • $\begingroup$ Thanks a lot for your answer. So, Just need to put "context.'UI'.tag_redraw()" at the end of my execute, Just before "return{'FINISHED'} ? $\endgroup$ – pistiwique May 11 '15 at 14:34
  • $\begingroup$ added an example $\endgroup$ – pink vertex May 15 '15 at 17:36

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.