<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt">I am the developer of Gyes ( random material and texture generator). The reason why Gyes <br>use bpy.context.scene is to store a property that store presets of randomised materials / textures. <br>I wanted the data to be stored/saved with the blend file and be associated with the scene curently loaded <br>as global scene presets and not specific presets to objects or any other 3d asset. <br><br>I am not sure if removing bpy.context.scene is a good idea in the first place, unless there is another way to save <br>, store scene presets together with the blend file. If so , then gladly I will update my addon. But if not , it basically <br>cripples / makes useless my history tool ->  <a
 href="http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/System/Gyes/History-Tool">http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/System/Gyes/History-Tool</a><div><span><br></span></div><div><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Campbell Barton <ideasman42@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Blender Foundation Python list <bf-python@blender.org>; bf-blender developers <bf-committers@blender.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 20 December 2012, 4:38<br> <b><span style="font-weight: bold;">Subject:</span></b> [Bf-python] Addon's can no longer access context on activation.<br> </font> </div> <br>Recently I've
 noticed addons using bpy.context.scene when being<br>imported or in the register() function.<br><br>This is really bad practice and will cause inconsistency if the addon<br>is enabled and a different blend file is loaded.<br>In the worst case accessing a removed datablock can crash which is<br>likely if a datablock is stored as a global variable on activation -<br>object_laplace_lightning.py does this.<br><br>I've changed addon loading so that they only get access to a<br>restricted context which only exposes 'window_manager' - needed for<br>adding keymaps.<br><br><br>Accessing other attributes now errors out with...<br><br>  AttributeError: '_RestrictedContext' object has no attribute 'scene'<br><br>The addons distributed with blender don't do this but some contrib<br>addons do, so they will need updating<br>(release/scripts/addons_contrib).<br><br>----<br>    add_mesh_clusters<br>    gyes<br>   
 io_atomblend_utilities<br>    io_export_marmalade<br>    io_import_LRO_Lola_MGS_Mola_img<br>    io_import_lipSync_Importer<br>    mesh_edgetools<br>    mesh_fiber<br>    mesh_show_vgroup_weights<br>    node_categories<br>    object_laplace_lightning<br>    online_mat_lib<br>    sequencer_extra_actions<br>    space_view3d_quickPrefs<br><br>If any devs want some help updating their addons you can ask on<br>bf-python mailing list, though in all cases I've seen its quite<br>straightforward.<br><br>-- <br>- Campbell<br>_______________________________________________<br>Bf-python mailing list<br><a ymailto="mailto:Bf-python@blender.org" href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br><a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br><br><br> </div>
 </div>  </div></body></html>