Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillian Padovani Germano <wpgermano@gmail.com>2004-05-23 00:25:22 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2004-05-23 00:25:22 +0400
commit7f6b88e3896c1b031ce955a7b52be8d0b8401519 (patch)
treee13f9e3e8bc23f410c70fa5a1e1957ff8425a923 /source/blender/python/BPY_menus.h
parent4551490dd44dbd8eae21826842e7e904bed5c288 (diff)
BPython:
- updated docs with recently added functions - dynamic menu entries now are sorted (alphabetically, of course) - added new menu categories for scripts: Wizards, Modifiers, Generators, Materials, Animation: only added to list of options, didn't mess with any Blender header. They are already available from the "Scripts" menu in the scripts win, but not elsewhere. - added option 'datadir' to Blender.Get(option): so scripts can use .blender/bpydata for reading / writing their data files.
Diffstat (limited to 'source/blender/python/BPY_menus.h')
-rw-r--r--source/blender/python/BPY_menus.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/python/BPY_menus.h b/source/blender/python/BPY_menus.h
index 10e32f66b90..b9826ed4bc2 100644
--- a/source/blender/python/BPY_menus.h
+++ b/source/blender/python/BPY_menus.h
@@ -36,8 +36,8 @@
* adds 'dynamic' menus to Blender, letting scripts register themselves in any
* of a few pre-defined (trivial to upgrade) places in menus. These places or
* slots are called groups here (Import, Export, etc). This is how it works:
- * - scripts at some specific folder (only the user pref U.pythondir, right
- * now) are scanned for registration info.
+ * - scripts at dirs user pref U.pythondir and .blender/scripts/ are scanned
+ * for registration info.
* - this data is also saved to a .Bpymenus file at the user's home dir and
* only re-created when the scripts folder gets modified.
* - on start-up Blender uses this info to fill a table, which is used to
@@ -79,9 +79,14 @@ typedef struct BPyMenu {
* the new group.
*/
typedef enum {
+ PYMENU_WIZARDS, /* complex 'app' scripts */
+ PYMENU_MODIFIERS, /* modifies existing objs */
+ PYMENU_MISC,
+ PYMENU_MATERIALS,
+ PYMENU_GENERATORS, /* creates new objects */
PYMENU_IMPORT,
PYMENU_EXPORT,
- PYMENU_MISC,
+ PYMENU_ANIMATION,
PYMENU_TOTAL
} PYMENUHOOKS;
@@ -96,7 +101,6 @@ void BPyMenu_RemoveAllEntries(void);
void BPyMenu_PrintAllEntries(void);
char *BPyMenu_CreatePupmenuStr(BPyMenu *pym, short group);
char *BPyMenu_group_itoa (short group);
-char *bpymenu_gethome();
struct BPyMenu *BPyMenu_GetEntry (short group, short pos);
#endif /* BPY_MENUS_H */