KeyMapItem called in 3DView jumps to execute without invoke

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

welford
Posts: 8
Joined: Tue Jan 27, 2009 2:10 pm
Location: Japan

KeyMapItem called in 3DView jumps to execute without invoke

Postby welford » Sun Nov 18, 2012 7:17 am

Hello,

I have a script which adds a menu to the info panel. That menu contains various exporting scripts that can be selected to bring up a GUI with options for exporting.

I added a shortcut so that I can display that menu in the 3D view (using ctrl+shift+"W") which works as I expect but upon selecting the sub-item that I wish to run the script jumps straight to the Operator's execute() method without calling invoke(). This means that the GUI is never set up ( I am using fileselect_add) and none of the options such as file location are set.

Is there a way to work around this?

Thanks,

James

Return to “Python”

Who is online

Users browsing this forum: Bing [Bot] and 0 guests