Blender Git Loki

Git Commits -> Revision d65fc84

Revision d65fc84 by Willian Padovani Germano (master)
April 16, 2005, 05:25 (GMT)
Note: this commit includes new functionality to save and restore scripts configure options. This is ongoing work, scripts still have to be updated to use this feature and more tests are needed, though many have been performed. The new Scripts Config Editor script is the main part of this. If anyone wants to check it, only the AC3D importer and exporter have already been updated to use it: simply open them (you can then cancel with ESC) to have the data created, then try the config editor.

Scripts:
- Thanks Jean-Michel Soler (jms) for updated versions of dispaint, fixfromarmature and unweld (also renamed to remove version part).
- Thanks Bart for the upgraded VRML exporter (great doc webpage!). It is available as VRML 97 and the original VRML 2 is for now still there, to help users testing the new version. For the next release the old one should be removed, of course.
- New script: Scripts Config Editor (Scripts win -> Scripts -> System). Scripts with config options (simple data that is to be set according to user needs or preferences) can use this facility instead of providing a gui and writing config files to disk themselves.
- Added new menu: System, available in the Scripts win.
- Updated sys_info.py, help_browse.py and the AC3D importer and exporter.
- Removed use of the Scrollbar and added arrow keys and mouse wheel support instead in Daniel Dunbar's old doc_browser.py. The scrollbar events handling doesn't exist, Ton suggested removing the scrollbar from the API months ago. For now its ref doc is gone and no bundled script uses it, until we get time to implement it properly.
- Added module BPyRegistry.py with functions to handle reading / writing config files automatically to the scripts/bpydata/config dir.
- Removing dir release/bpydata and its contents (moved earlier to release/scripts/bpydata/)
- Bug #2379: made small changes to bevel_center's ui to fix a problem reported by Alexander Ewering (intrr):
http://projects.blender.org/tracker/?func=detail&atid=125&aid=2379&group_id=9

BPython:
- Thanks Campbell Barton for new functionality: Blender.Get() now can also return all the paths from the user prefs -> file paths win and there is a new function: Blender.sys.expandpath() to transform Blender paths (those starting with '//' and ending with '#') to absolute paths.
- Added function Blender.ShowHelp(), to open the Scripts Help Browser with a given help page -- just a time saver for scripts.
- Improved function Blender.Run() to also work with gui and file select scripts.
- Found a (new?) crash related to NMesh.PutRaw when creating a new object while in edit mode. Leaving / entering edit mode fixes the problem, so a check for obj created, edit mode and leaving / re-entering it were added to the code for now (gdb didn't help much, no backtrace)
- doc updates, including splitting intro page in two, with bpython related stuff (registering / documenting / configuring scripts and command line mode (thanks Chris Want for "use system variables to pass parameters to scripts" idea).
- Registry: functions have been updated to support writing to / reading from disk, for the config editor -- only simple config data supported, for large amounts coders should write to a file themselves. This is done with a new parameter: Registry.GetKey(keyname, True) will also search for the key on the config dir, if not already loaded; equiv. for Registry.SetKey(keyname, dict, True). Data is only written to / read from disk when needed and only scripts already used (assuming they support this functionality) will have config data saved.

Commit Details:

Full Hash: d65fc84a6815673b9c4085bd4b3e4830167f59fb
SVN Revision: 4252
Parent Commit: 8b664b9
Lines Changed: +4667, -1288

5 Added Paths:

/release/scripts/bpymodules/BPyRegistry.py (+248, -0) (View)
/release/scripts/config.py (+792, -0) (View)
/release/scripts/unweld.py (+439, -0) (View)
/release/scripts/vrml97_export.py (+1065, -0) (View)
/source/blender/python/api2_2x/doc/API_related.py (+377, -0) (View)

2 Deleted Paths:

/release/bpydata/KUlang.txt (+0, -121)
/release/bpydata/readme.txt (+0, -9)

23 Modified Paths:

/release/scripts/ac3d_export.py (+610, -398) (Diff)
/release/scripts/ac3d_import.py (+449, -383) (Diff)
/release/scripts/bevel_center.py (+17, -11) (Diff)
/release/scripts/bpymodules/BPyBlender.py (+1, -1) (Diff)
/release/scripts/disp_paint.py (+10, -6) (Diff)
/release/scripts/doc_browser.py (+29, -16) (Diff)
/release/scripts/fixfromarmature.py (+27, -4) (Diff)
/release/scripts/help_browser.py (+10, -0) (Diff)
/release/scripts/sysinfo.py (+88, -51) (Diff)
/source/blender/python/api2_2x/Blender.c (+186, -2) (Diff)
/source/blender/python/api2_2x/doc/API_intro.py (+26, -169) (Diff)
/source/blender/python/api2_2x/doc/Blender.py (+41, -11) (Diff)
/source/blender/python/api2_2x/doc/Draw.py (+47, -31) (Diff)
/source/blender/python/api2_2x/doc/Object.py (+22, -22) (Diff)
/source/blender/python/api2_2x/doc/Registry.py (+30, -19) (Diff)
/source/blender/python/api2_2x/doc/Render.py (+2, -2) (Diff)
/source/blender/python/api2_2x/doc/Sys.py (+20, -1) (Diff)
/source/blender/python/api2_2x/EXPP_interface.c (+25, -6) (Diff)
/source/blender/python/api2_2x/NMesh.c (+6, -1) (Diff)
/source/blender/python/api2_2x/Registry.c (+64, -21) (Diff)
/source/blender/python/api2_2x/Sys.c (+29, -2) (Diff)
/source/blender/python/BPY_menus.c (+5, -0) (Diff)
/source/blender/python/BPY_menus.h (+2, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021