New scripts:
authorWillian Padovani Germano <wpgermano@gmail.com>
Sat, 3 Jul 2004 05:17:04 +0000 (05:17 +0000)
committerWillian Padovani Germano <wpgermano@gmail.com>
Sat, 3 Jul 2004 05:17:04 +0000 (05:17 +0000)
commit928282772051eadd29b26a43b4c217ebf06d0ba9
tree36e2a9906ed924e962554df716d30f0ad1bce798
parent90d4f7a3c1f6f789df61f348f974813a260014f5
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.
34 files changed:
release/scripts/ac3d_export.py
release/scripts/bevel_center.py [new file with mode: 0644]
release/scripts/doc_browser.py [new file with mode: 0644]
release/scripts/hotkeys.py [new file with mode: 0644]
release/scripts/obdatacopier.py [new file with mode: 0644]
release/scripts/renameobjectbyblock.py [new file with mode: 0644]
source/blender/blenkernel/intern/blender.c
source/blender/blenkernel/intern/exotic.c
source/blender/python/BPY_interface.c
source/blender/python/api2_2x/Blender.c
source/blender/python/api2_2x/Camera.c
source/blender/python/api2_2x/Draw.c
source/blender/python/api2_2x/Lamp.c
source/blender/python/api2_2x/Lamp.h
source/blender/python/api2_2x/Object.c
source/blender/python/api2_2x/Scene.c
source/blender/python/api2_2x/Sys.c
source/blender/python/api2_2x/World.c
source/blender/python/api2_2x/World.h
source/blender/python/api2_2x/doc/BGL.py
source/blender/python/api2_2x/doc/Blender.py
source/blender/python/api2_2x/doc/Camera.py
source/blender/python/api2_2x/doc/Draw.py
source/blender/python/api2_2x/doc/Image.py
source/blender/python/api2_2x/doc/Lamp.py
source/blender/python/api2_2x/doc/Mathutils.py
source/blender/python/api2_2x/doc/Object.py
source/blender/python/api2_2x/doc/Scene.py
source/blender/python/api2_2x/doc/Sys.py
source/blender/python/api2_2x/doc/Window.py
source/blender/python/api2_2x/doc/World.py
source/blender/src/drawtext.c
source/blender/src/drawview.c
source/creator/creator.c