Page MenuHome

Can't append hotkey in keymaps['Image'] when startup.
Closed, InvalidPublic


System Information
Win7 SP1 64bit

Blender Version
Broken: 2.74a, 2.75a

Short description of error
This's addon is working fine in Text Editor. But register error in startup:

File "D:\Program Files\Blender Foundation\Blender\2.75\scripts\addons_contrib\", line 60, in


kc = bpy.context.window_manager.keyconfigs.default.keymaps['Image']

KeyError: 'bpy_prop_collection[key]: key "Image" not found'

(Seems Blender don't init Image module, If we can't init it, Show me a way PLZ.)

Exact steps for others to reproduce the error
Hotkey for show previous/next image in Image Editor.



Event Timeline

Danyang Yi (nirenyang) raised the priority of this task from to Needs Triage by Developer.
Danyang Yi (nirenyang) updated the task description. (Show Details)
Danyang Yi (nirenyang) set Type to Bug.

hi, this is really a question for stackexchange or forums
you could try to change area type to UV_EDITOR (not tested)
closing this report as it's not a bug & not related to addons included in blender.

@Brendon Murphy (meta-androcto)

Change area type to UV_EDITOR not working. cuz Image module is not ready.

Should we delay add-on register system When blender is not ready?

I resolve it with with python threading module and delay hotkey register.

and I guess the delay method should be in Blender syetem.

BTW. This page up/down previous/next loop should be a buildin function in Image Editor.

Best wishes!

Here is update addon: