def register():
for cls in classes:
bpy.utils.register_class(cls)
os.environ['PATH'] = ''.join(('{}\lib;'.format(bLT_utils.getPaths()[1]),os.environ['PATH']))
bpy.types.Scene.locationgroups = CollectionProperty(type=bLT_main.LocationItems)
bpy.types.Scene.locationgroups_index = IntProperty(default=-1)
bpy.types.Scene.TexturePaintBrushNames = CollectionProperty(type=bLT_main.TexturePaintBrush)
dataFolder = bLT_utils.getPaths()[2]
import zipfile
zip_ref = zipfile.ZipFile('{}\\bLandscapeTools.zip'.format(dataFolder), 'r')
zip_ref.extractall('{}\\AppData\\Roaming\\Blender Foundation\\Blender\\{}.{}\\scripts\\startup\\bl_app_templates_user'.format(os.environ['USERPROFILE'],bpy.app.version[0],bpy.app.version[1]))
zip_ref.close()
bpy.context.user_preferences.filepaths.use_relative_paths = False
bpy.context.user_preferences.filepaths.show_thumbnails = True
bpy.context.user_preferences.system.use_mipmaps = False
bpy.context.user_preferences.view.use_mouse_depth_navigate = True
bpy.context.user_preferences.view.use_zoom_to_mouse = True
bpy.context.user_preferences.view.use_rotate_around_active = True
bpy.context.user_preferences.view.use_auto_perspective = True
bpy.context.user_preferences.system.use_select_pick_depth = True
bpy.context.user_preferences.system.select_method = 'GL_QUERY'
评论列表
文章目录