[Bf-python] Clearing single scriptlink

Gert De Roost paleajed at yahoo.com
Sun Mar 20 14:03:41 CET 2005


Just a suggestion.

As BPython and available scripts begin to expand,
users might have multiple scripts running that are
linked to a scene or object.
As it is now, one can only, from within a script,
clear all scriptlinks at once.  The prudent
programmer, of course, when wanting to clear a
scriptlink, will first make lists of other scripts
running, then clear all links, and finally restore all
running scripts.

Not doing this will however be a common oversight, so
it might be saver to get clearScriptLinks to take
optional arguments like this:

clearScriptLinks("script1", "script2", "script3",...)

Doing a clearScriptLinks() without arguments would
then clear all scriptlinks, as it has always been.


.gert.


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 



More information about the Bf-python mailing list