pitiwazou
(Pitiwazou)
February 20, 2016, 7:21am
1
Hi,
I’m trying to make a little addon to show options depending on the selection with popups.
My issue is that the popup doens’t update after changing some options.
The popup is called with invoke_props_dialog to refresh
There is an example.
How force Blender to make a refresh ?
Thx for your help
pitiwazou
(Pitiwazou)
February 20, 2016, 11:40am
2
Found !
Just have to add
def check(self, context):
return True
batFINGER
(batFINGER)
February 21, 2016, 7:54am
3
Nice one, a modal popup, where do you add check(…) ?
domlysz
(domlysz)
February 24, 2016, 1:18am
4
Please can you give us a code snippet, I thought it was impossible to redraw a popup dialog !
https://developer.blender.org/T34639
https://developer.blender.org/T26436
pitiwazou
(Pitiwazou)
February 24, 2016, 1:38am
5
You add the check before the popup.
domlysz
(domlysz)
February 24, 2016, 1:52am
6
Incredible, I just try it with one of my code with “static” popup and it works great, where do you find this information !? i’ve spent lot of time to find a hack like this
Thank you !
pitiwazou
(Pitiwazou)
February 24, 2016, 1:59am
7
A friend on blenderlounge gives me that code ^^
So simple !
domlysz
(domlysz)
February 24, 2016, 2:12am
8
ok c’est décidé je file m’inscrire sur blenderlounge !
pitiwazou
(Pitiwazou)
February 24, 2016, 2:25am
9
Si t’es français en plus !! ^^
draguu
(draguu)
February 24, 2016, 5:06am
10
pitiwazou, please dont say this will going to be paid addon please pleaseeeee
pitiwazou
(Pitiwazou)
February 24, 2016, 5:11am
11
My popup ?
Nope it’s just a test ^^
And I have only one addon on the market, all my other addons are free ^^
The goal of this script is to have usefull settings on the fly, with simple settings first and other settings if we want.
draguu
(draguu)
February 24, 2016, 5:26am
12
few months back in IRC channel i asked devs to make something like this … but they said aah not possible , but i can see that its almost near , it will be very handy and helpful to many ,
waiting for it
pitiwazou
(Pitiwazou)
February 24, 2016, 5:28am
13
My idea is for the rendering, having acces to the camera settings, render resolution, Light settings etc, but not to make a separate window of the property view.
draguu
(draguu)
February 24, 2016, 5:32am
14
yes and its very helpful when shall we have it haha
batFINGER
(batFINGER)
February 24, 2016, 5:49pm
15
Ditto… the number of hacks I tried to make a modal dialog and failed, ended up moving so much code back to panels. Never in a zillion yrs would have thought of using a check method…
@pitwazou , Huge thanks from me too.
awesome work, congrats, you could submit something like this to blender addons.
interessant
as-tu un example simple pour tester ?
merci
happy cl
pitiwazou
(Pitiwazou)
February 25, 2016, 7:55am
18
Tu peux tester sur mon script.
Shared with Dropbox
C’est loin d’être fini !
Shift + Double LMB
karolis
(karolis)
March 1, 2016, 6:59am
19
tryed ur script but for me it still doesnt work, popup doesnt’t refresh,
anyone have any idea what might be wrong?
edit:
solved kinda.
it seems it doesn’t work in 2.77 rc, but works in 2.76
draguu
(draguu)
March 4, 2016, 5:12am
20
wazou, its fun … awesome little script love it ,
http://www.pasteall.org/65762/python