Heh, maybe you mean selected renderer? In any event, true. I wouldn't want my stored renderer settings to go away if I disable scriptlinks for whatever reason. Autoregistration of a spacehandler is a good idea...and handy because I then don't have to instruct a user that they need to enable the spacehandler anymore. Installation gets more seamless.
<br><br>Bobby<br><br><div><span class="gmail_quote">On 10/10/06, <b class="gmail_sendername">Joe Eagar</b> <<a href="mailto:joeedh@gmail.com">joeedh@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi. I was thinking about ID properties and stuff, and I realized we're<br>going to need a way to register trusted scripts.  Some sort of generic<br>system that'd work for scripts drawing custom ID properties guis and<br>also normal scripts.
<br><br>Basically, a trusted registered script can do these things:<br>* It can register a function to call whenever a .blend is loaded (e.g. a<br>init/re-init function).<br>* It can register space handler scripts and scriptlinks, which are in
<br>their own class that can't be disabled (though I think an option to<br>disable the whole trusted script system might be a good idea if people<br>want it :) )<br>* It can register a clean-up function that gets called when a different
<br>.blend is loaded.<br><br>The trusted script system would also be extendable, so for example ID<br>properties could use it to handle custom-gui scripts for ID properties<br>(and wa-hoo! finally panels will have to be wrapped for this to all
<br>work! fun!).<br><br>My ideas for implementation, is that all trusted scripts are<br>prebytecompiled (with some way to get them to recompile themselves, not<br>sure how).  The system would store the list of registered trusted
<br>scripts in a special .B.scripts.<br><br>The reasons ID properties custom guis needs this, is that obviously you<br>don't want your renderman material settings to disappear whenever you<br>disable scriptlinks :)<br><br>
Joe<br>_______________________________________________<br>Bf-python mailing list<br><a href="mailto:Bf-python@projects.blender.org">Bf-python@projects.blender.org</a><br><a href="http://projects.blender.org/mailman/listinfo/bf-python">
http://projects.blender.org/mailman/listinfo/bf-python</a><br></blockquote></div><br>