diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-09-18 04:54:43 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-09-18 04:54:43 +0400 |
commit | 775f006bf1202abb5b9f69ecc3ab4cd1dd28a508 (patch) | |
tree | fe3afcf8798f65fc212c52bb8481ad3a73d43f88 /source/blender/python/api2_2x/Window.h | |
parent | da773eee1811900c6250629baa9b923c11591930 (diff) |
Exppython:
- Window: implemented .SetCursorPos, .GetViewMatrix, .GetViewVector
- Lamp: .setDist was not in the methods table:
Fix by new bpython developer Stephen Swaney
- Scene: .frameSettings was crashing Blender (pointed by jms)
- Added site dirs to sys.path (patch by Stephen Swaney)
- NMesh: small internal change (added pointer to parent object)
- Object: function NMesh_FromPyObject has a new arg: pointer to obj
- Docs: added docs for implemented functions, plus some more info
Diffstat (limited to 'source/blender/python/api2_2x/Window.h')
-rw-r--r-- | source/blender/python/api2_2x/Window.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Window.h b/source/blender/python/api2_2x/Window.h index 525701228fe..c7b631a703a 100644 --- a/source/blender/python/api2_2x/Window.h +++ b/source/blender/python/api2_2x/Window.h @@ -69,6 +69,9 @@ static PyObject *M_Window_FileSelector (PyObject *self, PyObject *args); static PyObject *M_Window_ImageSelector (PyObject *self, PyObject *args); static PyObject *M_Window_DrawProgressBar (PyObject *self, PyObject *args); static PyObject *M_Window_GetCursorPos (PyObject *self); +static PyObject *M_Window_SetCursorPos (PyObject *self, PyObject *args); +static PyObject *M_Window_GetViewVector (PyObject *self); +static PyObject *M_Window_GetViewMatrix (PyObject *self); /*****************************************************************************/ /* The following string definitions are used for documentation strings. */ @@ -115,6 +118,15 @@ currently being done."; char M_Window_GetCursorPos_doc[] = "() - Get the current 3d cursor position as a list of three floats."; +char M_Window_SetCursorPos_doc[] = +"([f,f,f]) - Set the current 3d cursor position from a list of three floats."; + +char M_Window_GetViewVector_doc[] = +"() - Get the current 3d view vector as a list of three floats [x,y,z]."; + +char M_Window_GetViewMatrix_doc[] = +"() - Get the current 3d view matrix."; + /*****************************************************************************/ /* Python method structure definition for Blender.Window module: */ /*****************************************************************************/ @@ -132,6 +144,12 @@ struct PyMethodDef M_Window_methods[] = { M_Window_DrawProgressBar_doc}, {"GetCursorPos", (PyCFunction)M_Window_GetCursorPos, METH_NOARGS, M_Window_GetCursorPos_doc}, + {"SetCursorPos", M_Window_SetCursorPos, METH_VARARGS, + M_Window_SetCursorPos_doc}, + {"GetViewVector", (PyCFunction)M_Window_GetViewVector, METH_NOARGS, + M_Window_GetViewVector_doc}, + {"GetViewMatrix", (PyCFunction)M_Window_GetViewMatrix, METH_NOARGS, + M_Window_GetViewMatrix_doc}, {NULL, NULL, 0, NULL} }; |