This is my first post. I am new to scripting and I'm facing the overwhelming information of the api, python, etc. I just want to know if it is possible to add a new entry on the file menu of blender or in any other of the header

file menu enytry

  • 1
    $\begingroup$ Without overriding the actual draw method that's not possible at the moment. However, supported is to append or prepend a new item to existing menus, meaning adding a new item at the top of the whole menu (YOUR_ITEM, New, Open, Open Re...) or appending your item to the bottom of the menu (Defaults, Quit, YOUR_ITEM). See: blender.stackexchange.com/a/3403/31447 $\endgroup$
    – brockmann
    May 30 '20 at 14:34
  • $\begingroup$ Ok i understand that, will be great to add in top of the new section, if is not too much to ask, how can i achieve that? the link you post is from older blender, that will work on new versions? thanx in advance $\endgroup$
    – Marcos
    May 30 '20 at 19:52
  • 1
    $\begingroup$ Doesn't matter, still the same. A demo: blender.stackexchange.com/a/152566/31447 Just replace VIEW3D_MT_curve_add with TOPBAR_MT_file to add a new item to the file menu. Instead of calling append(draw_menu), use prepend() docs.blender.org/api/current/… $\endgroup$
    – brockmann
    May 31 '20 at 13:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.