32
33
#ifndef EXPP_BLENDER_H
33
34
#define EXPP_BLENDER_H
38
#include <BKE_global.h>
39
#include <BSE_headerbuttons.h>
41
#include <DNA_object_types.h>
42
#include <DNA_scene_types.h>
43
#include <DNA_screen_types.h> /* for SPACE_VIEW3D */
44
#include <DNA_userdef_types.h>
47
#include "gen_utils.h"
50
/* From Window.h, used here by Blender_Redraw */
51
PyObject *M_Window_Redraw(PyObject *self, PyObject *args);
53
/*****************************************************************************/
54
/* Python API function prototypes for the Blender module. */
55
/*****************************************************************************/
56
PyObject *Blender_Set (PyObject *self, PyObject *args);
57
PyObject *Blender_Get (PyObject *self, PyObject *args);
58
PyObject *Blender_Redraw(PyObject *self, PyObject *args);
59
PyObject *Blender_ReleaseGlobalDict(PyObject *self, PyObject *args);
60
PyObject *Blender_Quit(PyObject *self);
62
/*****************************************************************************/
63
/* The following string definitions are used for documentation strings. */
64
/* In Python these will be written to the console when doing a */
66
/*****************************************************************************/
67
char Blender_Set_doc[] =
68
"(request, data) - Update settings in Blender\n\
70
(request) A string identifying the setting to change\n\
71
'curframe' - Sets the current frame using the number in data";
73
char Blender_Get_doc[] =
74
"(request) - Retrieve settings from Blender\n\
76
(request) A string indentifying the data to be returned\n\
77
'curframe' - Returns the current animation frame\n\
78
'curtime' - Returns the current animation time\n\
79
'staframe' - Returns the start frame of the animation\n\
80
'endframe' - Returns the end frame of the animation\n\
81
'filename' - Returns the name of the last file read or written\n\
82
'version' - Returns the Blender version number";
84
char Blender_Redraw_doc[] = "() - Redraw all 3D windows";
86
char Blender_ReleaseGlobalDict_doc[] =
87
"Deprecated, please use the Blender.Registry module solution instead.";
89
char Blender_Quit_doc[] =
90
"() - Quit Blender. Experimental, please use with caution.";
92
/*****************************************************************************/
93
/* Python method structure definition. */
94
/*****************************************************************************/
95
struct PyMethodDef Blender_methods[] = {
96
{"Set", Blender_Set, METH_VARARGS, Blender_Set_doc},
97
{"Get", Blender_Get, METH_VARARGS, Blender_Get_doc},
98
{"Redraw", Blender_Redraw, METH_VARARGS, Blender_Redraw_doc},
99
{"Quit", (PyCFunction)Blender_Quit, METH_NOARGS, Blender_Quit_doc},
100
{"ReleaseGlobalDict", &Blender_ReleaseGlobalDict,
101
METH_VARARGS, Blender_ReleaseGlobalDict_doc},
105
#endif /* EXPP_BLENDER_H */
36
extern PyObject *g_blenderdict;
37
void M_Blender_Init( void );
39
#endif /* EXPP_BLENDER_H */