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.
This commit is contained in:
@@ -804,11 +804,11 @@ class Property:
|
||||
"""
|
||||
Set the the Object's Particle Interaction type.
|
||||
Use Module Constants
|
||||
NONE
|
||||
WIND
|
||||
FORCE
|
||||
VORTEX
|
||||
MAGNET
|
||||
- NONE
|
||||
- WIND
|
||||
- FORCE
|
||||
- VORTEX
|
||||
- MAGNET
|
||||
@rtype: PyNone
|
||||
@type type: int
|
||||
@param type: the Object's Particle Interaction Type.
|
||||
@@ -902,7 +902,7 @@ class Property:
|
||||
Values between 0 to 50.0
|
||||
@rtype: PyNone
|
||||
@type mass: float
|
||||
@param damp: the Object's SB New mass.
|
||||
@param mass: the Object's SB New mass.
|
||||
"""
|
||||
|
||||
def getSBGravity():
|
||||
@@ -917,7 +917,7 @@ class Property:
|
||||
Values between 0 to 10.0
|
||||
@rtype: PyNone
|
||||
@type grav: float
|
||||
@param damp: the Object's SB New Gravity.
|
||||
@param grav: the Object's SB New Gravity.
|
||||
"""
|
||||
|
||||
def getSBFriction():
|
||||
@@ -932,7 +932,7 @@ class Property:
|
||||
Values between 0 to 10.0
|
||||
@rtype: PyNone
|
||||
@type frict: float
|
||||
@param damp: the Object's SB New Friction.
|
||||
@param frict: the Object's SB New Friction.
|
||||
"""
|
||||
|
||||
def getSBErrorLimit():
|
||||
@@ -947,7 +947,7 @@ class Property:
|
||||
Values between 0 to 1.0
|
||||
@rtype: PyNone
|
||||
@type err: float
|
||||
@param damp: the Object's SB New ErrorLimit.
|
||||
@param err: the Object's SB New ErrorLimit.
|
||||
"""
|
||||
|
||||
def getSBGoalSpring():
|
||||
@@ -962,7 +962,7 @@ class Property:
|
||||
Values between 0 to 0.999
|
||||
@rtype: PyNone
|
||||
@type gs: float
|
||||
@param damp: the Object's SB New GoalSpring.
|
||||
@param gs: the Object's SB New GoalSpring.
|
||||
"""
|
||||
|
||||
def getSBGoalFriction():
|
||||
@@ -977,7 +977,7 @@ class Property:
|
||||
Values between 0 to 10.0
|
||||
@rtype: PyNone
|
||||
@type gf: float
|
||||
@param damp: the Object's SB New GoalFriction.
|
||||
@param gf: the Object's SB New GoalFriction.
|
||||
"""
|
||||
|
||||
def getSBMinGoal():
|
||||
@@ -992,7 +992,7 @@ class Property:
|
||||
Values between 0 to 1.0
|
||||
@rtype: PyNone
|
||||
@type mg: float
|
||||
@param damp: the Object's SB New MinGoal.
|
||||
@param mg: the Object's SB New MinGoal.
|
||||
"""
|
||||
|
||||
def getSBMaxGoal():
|
||||
@@ -1007,7 +1007,7 @@ class Property:
|
||||
Values between 0 to 1.0
|
||||
@rtype: PyNone
|
||||
@type mg: float
|
||||
@param damp: the Object's SB New MaxGoal.
|
||||
@param mg: the Object's SB New MaxGoal.
|
||||
"""
|
||||
|
||||
def getSBInnerSpring():
|
||||
@@ -1021,8 +1021,8 @@ class Property:
|
||||
Set the the Object's SB InnerSpring.
|
||||
Values between 0 to 0.999
|
||||
@rtype: PyNone
|
||||
@type spr: float
|
||||
@param damp: the Object's SB New InnerSpring.
|
||||
@type sprr: float
|
||||
@param sprr: the Object's SB New InnerSpring.
|
||||
"""
|
||||
|
||||
def getSBInnerSpringFriction():
|
||||
@@ -1037,7 +1037,7 @@ class Property:
|
||||
Values between 0 to 10.0
|
||||
@rtype: PyNone
|
||||
@type sprf: float
|
||||
@param damp: the Object's SB New InnerSpringFriction.
|
||||
@param sprf: the Object's SB New InnerSpringFriction.
|
||||
"""
|
||||
|
||||
def getSBDefaultGoal():
|
||||
@@ -1052,7 +1052,7 @@ class Property:
|
||||
Values between 0 to 1.0
|
||||
@rtype: PyNone
|
||||
@type goal: float
|
||||
@param damp: the Object's SB New DefaultGoal.
|
||||
@param goal: the Object's SB New DefaultGoal.
|
||||
"""
|
||||
|
||||
def getSBEnable():
|
||||
@@ -1068,7 +1068,7 @@ class Property:
|
||||
0: off
|
||||
@rtype: PyNone
|
||||
@type switch: int
|
||||
@param damp: the Object's SB New Enable Value.
|
||||
@param switch: the Object's SB New Enable Value.
|
||||
"""
|
||||
|
||||
def getSBPostDef():
|
||||
@@ -1084,7 +1084,7 @@ class Property:
|
||||
0: off
|
||||
@rtype: PyNone
|
||||
@type switch: int
|
||||
@param damp: the Object's SB New PostDef Value.
|
||||
@param switch: the Object's SB New PostDef Value.
|
||||
"""
|
||||
|
||||
def getSBUseGoal():
|
||||
@@ -1100,7 +1100,7 @@ class Property:
|
||||
0: off
|
||||
@rtype: PyNone
|
||||
@type switch: int
|
||||
@param damp: the Object's SB New UseGoal Value.
|
||||
@param switch: the Object's SB New UseGoal Value.
|
||||
"""
|
||||
def getSBUseEdges():
|
||||
"""
|
||||
@@ -1115,7 +1115,7 @@ class Property:
|
||||
0: off
|
||||
@rtype: PyNone
|
||||
@type switch: int
|
||||
@param damp: the Object's SB New UseEdges Value.
|
||||
@param switch: the Object's SB New UseEdges Value.
|
||||
"""
|
||||
|
||||
def getSBStiffQuads():
|
||||
@@ -1131,5 +1131,5 @@ class Property:
|
||||
0: off
|
||||
@rtype: PyNone
|
||||
@type switch: int
|
||||
@param damp: the Object's SB New StiffQuads Value.
|
||||
@param switch: the Object's SB New StiffQuads Value.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user