kilon
January 4, 2014, 8:04am
1
Aloha solid snakes , I am making an updater for blender and I want add “Update Blender” entry to the Help menu. How I do that ?
I know about the menu template and I have searched this forum, I know how to make the menu, my question is how I inject it to the bottom of the Help menu.
Aloha solid snakes , I am making an updater for blender and I want add “Update Blender” entry to the Help menu. How I do that ?
I know about the menu template and I have searched this forum, I know how to make the menu, my question is how I inject it to the bottom of the Help menu.
hover over the menu with python tips enabled will show you the type of the menu.
in this case it is INFO_MT_help. then add your drawing function.
bpy.types.INFO_MT_help.append(draw_func)
bpy.types.INFO_MT_help.remove(draw_func)
in the template this is being done in the register/unregister function
kilon
January 4, 2014, 8:50am
3
there is no add_draw method for that object .
AttributeError: type object ‘INFO_MT_help’ has no attribute ‘add_draw’
it contains these methods
append(
as_pointer(
bl_label
bl_rna
draw(
draw_preset(
driver_add(
driver_remove(
get(
id_data
is_property_hidden(
is_property_set(
is_registered
items(
keyframe_delete(
keyframe_insert(
keys(
mro(
path_from_id(
path_menu(
path_resolve(
prepend(
property_unset(
remove(
type_recast(
values(
it could be append() but unfortunately that object is not documented in the API so I don’t know how to use it.
kilon:
there is no add_draw method for that object .
AttributeError: type object ‘INFO_MT_help’ has no attribute ‘add_draw’
it contains these methods
append(
as_pointer(
bl_label
bl_rna
draw(
draw_preset(
driver_add(
driver_remove(
get(
id_data
is_property_hidden(
is_property_set(
is_registered
items(
keyframe_delete(
keyframe_insert(
keys(
mro(
path_from_id(
path_menu(
path_resolve(
prepend(
property_unset(
remove(
type_recast(
values(
it could be append() but unfortunately that object is not documented in the API so I don’t know how to use it.
sorry, submitted the post too early and edited it afterwards - it is the append method
kilon
January 4, 2014, 9:06am
5
yeah you are awesome thanks it work