[Bf-python] Scriptlinks and Spacehandlers
Campbell Barton
cbarton at metavr.com
Sat May 27 02:32:18 CEST 2006
This is my doing, without any way to disable scriptlinks, it would be
trivial to write a blend that (on opening+1 click) would remove all the
users files.
since we distribute .blend files in the bug tracker, this is a possibility.
These 2 should be combined into 1- (a draw/event-spacehandler should be
able to be 1 script if the developer needs that)
Another issue is that scripts should probably be able to enable/disable
scriptlinks somehow - Dont think this was a design decision, just
something thats not done yet?
- Cam
Michael Schardt wrote:
> 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
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-python
>
--
Campbell J Barton
133 Hope Street
Geelong West, Victoria 3218 Australia
URL: http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241
More information about the Bf-python
mailing list