diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-12-28 14:09:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-12-28 14:09:36 +0300 |
commit | 2feea3dcc36fbd250445e4efca756e50d221be29 (patch) | |
tree | 2fd20815b65bdd9dce61af704bc2be4d3fbe57fa /source/blender/python/api2_2x/Scene.h | |
parent | 356ea2ff28517cc8e32c5af117e0f697174d8ee7 (diff) |
made scn.objects more flexible... you can now things like...
scn.objects.selected = [] # deselect all
scn.objects.selected = scn.objects # select all
scn.objects.context = [ob1, ob2...]
Added epydoc examples and updates importer scripts to use this de-select-all method.
Diffstat (limited to 'source/blender/python/api2_2x/Scene.h')
-rw-r--r-- | source/blender/python/api2_2x/Scene.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Scene.h b/source/blender/python/api2_2x/Scene.h index ee4c4573983..4d294700c63 100644 --- a/source/blender/python/api2_2x/Scene.h +++ b/source/blender/python/api2_2x/Scene.h @@ -42,6 +42,8 @@ extern PyTypeObject SceneObSeq_Type; #define BPy_Scene_Check(v) \ ((v)->ob_type == &Scene_Type) +#define BPy_SceneObSeq_Check(v) \ + ((v)->ob_type == &SceneObSeq_Type) /*---------------------------Python BPy_Scene structure definition----------*/ typedef struct { @@ -63,7 +65,7 @@ typedef struct { PyObject *Scene_Init( void ); PyObject *Scene_CreatePyObject( Scene * cam ); -Scene *Scene_FromPyObject( PyObject * pyobj ); +/*Scene *Scene_FromPyObject( PyObject * pyobj );*/ /* not used yet */ int Scene_CheckPyObject( PyObject * pyobj ); Scene *GetSceneByName( char *name ); |