Skip to main content

Timeline for How to call invoke_popup?

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Feb 7 at 11:25 comment added Harry McKenzie How do you make it modal so that when you click outside the popup, it will not disappear so you are forced to click OK?
Jan 13, 2016 at 18:27 history edited p2or CC BY-SA 3.0
Api links
Jan 26, 2014 at 17:41 comment added WorldSEnder One could also use col.prop_search(self, 'uvtex', context.object.data, 'uv_textures') instead of col.prop(self, 'uvtex', expand=True). This way the user can search for specific names if he has many items.
Jan 26, 2014 at 0:41 comment added CodeManX Ah ok, yeah. Well, you need to use a different execution context for a dialog, since its modal handler is added in the invoke method, not execute (but execute is called by default if you call a bpy operator in script, thus the action is taken but without user interaction).
Jan 25, 2014 at 15:50 comment added WorldSEnder I clearified the question a bit (in EDIT:)
Jan 25, 2014 at 13:49 vote accept WorldSEnder
Jan 25, 2014 at 10:18 comment added CodeManX So you want to open a sequence of popups, to let the user pick a UV map, with no option to abort this process? Or let the user click some button for each object? Not sure what you mean with uvtex_items, functions are first-class citizens in python. My code requires the active object to be a mesh object with at least one UV map, or Simple Object Operator won't appear in the spacebar menu list.
Jan 25, 2014 at 3:56 comment added WorldSEnder So how would I call a new popup from outside? For each object U want to have the users choice. How would I let Blender open an instance of UVLayerPrompt?
Jan 25, 2014 at 3:08 history answered CodeManX CC BY-SA 3.0