I want to create shortcut for import menu.
At this moment if you want to import something into scene you must navigate into “file” menu. It would be a lot easier to show import options by shortcut, for example pressing Ctrl+F1 and displaying this:
I tried to bind “wm.call_menu” “INFO_MT_file_import” inside Input Preferences.
And it partially worked and shows popup like on first screenshot. But if I press any import menu item, for example “Wavefront (.obj)” it display an error:
Traceback (most recent call last):
File “C:\Program Files\Steam\SteamApps\common\Blender\2.78\scripts\addons\io_scene_obj_init_.py”, line 147, in execute
return import_obj.load(context, **keywords)
File “C:\Program Files\Steam\SteamApps\common\Blender\2.78\scripts\addons\io_scene_obj\import_obj.py”, line 945, in load
float_func = get_float_func(filepath)
File “C:\Program Files\Steam\SteamApps\common\Blender\2.78\scripts\addons\io_scene_obj\import_obj.py”, line 866, in get_float_func
file = open(filepath, ‘rb’)
FileNotFoundError: [Errno 2] No such file or directory: ‘’
location: <unknown location>:-1
So I think I have to create an addon and mess with scripting.
I would be glad if someone give me basic ideas what function should I use to show such popup.