[Bf-python] Scriptlinks and Spacehandlers

Michael Schardt M.Schardt at web.de
Fri May 26 12:32:45 CEST 2006


Hi!

I'm not sure if this is the right place to ask this question, but...
Is there any reason why in the current CVS-versions you need to enable scriptlinks in order to make spacehandlers work? (was not necessary in Blender 2.41)
It simply makes it harder to call interactive python scripts. 
To call a script that uses spacehandlers you need to
 - call the script from a menu
 - activate the draw-spacehandler (if script needs it)
 - activate the event-spacehandler (if script needs it)
 - and now also enable scriptlinks...
It seems to get more and more complicated instead of easier. Somehow i get the impression interactive scripts are not really welcome...
If the reason is safety, then i have to say that it's still possible to save a .blend-file which has spacehandlers and scriptlinks enabled, so malicious code could still be executed automatically on load (if Blender wasn't opened with this special option i can't remember now). Any other reason?
Btw. i never understood why there are two spacehandlers anyway. Why not just one for all? The reason for calling the spacehandler (event or draw) could be passed to the script as a parameter as well.
Please don't take this as an offence - you're all doing a great job in developing Blender's python system. It's really very, very powerful. Thank you all!
I just wished we had a more convenient and userfriendly way to call interactive scripts...

Greetings and keep up the good work!

Michael Schardt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20060526/031f4200/attachment.html>


More information about the Bf-python mailing list