bpy.types.Scene.auto_download_previews=bpy.props.BoolProperty(name="Auto-Preview",description="Automatically download material previews",default=True,options={'SKIP_SAVE'})
bpy.types.Scene.cache_previews=bpy.props.BoolProperty(name="Cache Previews",description="Store preview images locally for faster loading",default=True,options={'SKIP_SAVE'})
bpy.types.Scene.bcm_datablock=bpy.props.StringProperty(name="Text Datablock",description="Name of text datablock to write .bcm data to",default="bcm_file",options={'SKIP_SAVE'})
bpy.types.Scene.bcm_save_location=bpy.props.StringProperty(name="Save location",description="Directory to save .bcm files in",default=bpy.utils.user_resource('DATAFILES',path="material-library"+os.sep+"my-materials"+os.sep,create=True),options={'SKIP_SAVE'},subtype="DIR_PATH")
bpy.types.Scene.bcm_open_location=bpy.props.StringProperty(name="Open location",description="Location of .bcm file to open",default=bpy.utils.user_resource('DATAFILES',path="material-library"+os.sep+"my-materials"+os.sep,create=True),options={'SKIP_SAVE'})
bpy.types.Scene.material_subcategory=bpy.props.EnumProperty(name="",items=subcategory_enum_items,description="Choose a subcategory",options={'SKIP_SAVE'})
classOnlineMaterialLibraryPanel(bpy.types.Panel):
"""Creates a Panel in the Object properties window"""
row.operator("wm.url_open",text="All materials are CC0 - learn more.",emboss=False).url="http://creativecommons.org/publicdomain/zero/1.0/"
row=layout.row()
row.operator("wm.url_open",text="Material previews generated with B.M.P.S.",emboss=False).url="https://svn.blender.org/svnroot/bf-blender/trunk/lib/tests/rendering/cycles/bmps.blend"
row=layout.row()
row.operator("wm.url_open",text="B.M.P.S. created by Robin \"tuqueque\" Marín",emboss=False).url="http://blenderartists.org/forum/showthread.php?151903-b.m.p.s.-1.5!"
print("The material file contains the node name \"%s\", which is not known. The material file may contain a typo, or you may need to check for updates to this addon."%node_data[0])