diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-07-03 09:17:04 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-07-03 09:17:04 +0400 |
commit | 928282772051eadd29b26a43b4c217ebf06d0ba9 (patch) | |
tree | 36e2a9906ed924e962554df716d30f0ad1bce798 /source/creator | |
parent | 90d4f7a3c1f6f789df61f348f974813a260014f5 (diff) |
New scripts:
- hotkeys, obdatacopier and renameobjectbyblock, all from Jean-Michel Soler (jms);
- bevel_center by Loic Berthe, suggested for inclusion by jms;
- doc_browser, by Daniel Dunbar (Zr)
Thanks to them for the new contributions!
(I included doc_browser at 'Misc' because only users interested in script writing would actually use it, but it could also be under 'Help'. Opinions?)
BPython related:
- Added scriptlink methods to object, lamp, camera and world.
- Object: added object.makeTrack and object.clearTrack (old track method).
- sys: made sys.exists(path) return 0 for not found; 1 for file, 2 for dir and -1 for neither.
- doc updates and fixes.
- made ONLOAD event work. G.f's SCENESCRIPT bit was being zeroed in set_app_data.
- Blender: updated functions Load and Save to support the builtin importers and exporters besides .blend (dxf, videoscape, vrml 1.0, stl, ...)
- Draw: added mouse wheel events.
- Scene: added scene.play to play back animations (like ALT+A and SHIFT+ALT+A). Makes a good counter, too, when the 'win' attribute is set to a space that doesn't "animate".
The scene.play() addition and the fix to ONLOAD scriptlinks is part of the work for a Blender demo mode. It already works, but I'll still add support for Radiosity calculations and fix a thing in main(): it executes onload scripts too early (BIF_Init), giving funny results in alt+a animations and renderings when firing up Blender. Loading after the program is up has no such problems. When I finish I'll post examples of demo mode scripts.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 67c05422ed2..f95653f7725 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -182,7 +182,7 @@ static void print_help(void) printf (" -noaudio\tDisable audio on systems that support audio\n"); printf (" -h\t\tPrint this help text\n"); printf (" -y\t\tDisable OnLoad scene scripts, use -Y to find out why its -y\n"); - printf (" -P <filename>\tRun the given Python script\n"); + printf (" -P <filename>\tRun the given Python script (filename or Blender Text)\n"); #ifdef WIN32 printf (" -R\t\tRegister .blend extension\n"); #endif @@ -424,16 +424,6 @@ int main(int argc, char **argv) BIF_init(); - /** - * NOTE: the U.pythondir string is NULL until BIF_init() is executed, - * so we provide the BPY_ function below to append the user defined - * pythondir to Python's sys.path at this point. Simply putting - * BIF_init() before BPY_start_python() crashes Blender at startup. - * Update: now this function also inits the bpymenus, which also depend - * on U.pythondir. - */ - - BPY_post_start_python(); } else { BPY_start_python(); @@ -445,6 +435,16 @@ int main(int argc, char **argv) // if (G.f & G_DEBUG) printf("setting audio to: %d\n", audio); } + /** + * NOTE: the U.pythondir string is NULL until BIF_init() is executed, + * so we provide the BPY_ function below to append the user defined + * pythondir to Python's sys.path at this point. Simply putting + * BIF_init() before BPY_start_python() crashes Blender at startup. + * Update: now this function also inits the bpymenus, which also depend + * on U.pythondir. + */ + BPY_post_start_python(); + RE_init_filt_mask(); #ifdef WITH_QUICKTIME |