diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-08 13:03:17 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-08 13:03:17 +0400 |
commit | 46f8dba4c783fe5d174bd47a70710f9d7f0aeb07 (patch) | |
tree | 7998b9664bb00612501243ca20c0c9ddc7b5a0e9 /release/scripts/modules/sys_info.py | |
parent | 55416f435ab9043df13b23e3e5244003d05d69bf (diff) |
Extend system-info with information about OIIO, OCIO and OSL
Summary:
Version of those libraries might be useful to know.
- OIIO and OCIO is exposed via bpy.app.oiio and bpy.app.ocio.
There're "supported", "version" and "version_string" defined
in those modules.
- OSL is available as _cycles.osl_version and _cycles.osl_version_string.
Reviewers: campbellbarton
Reviewed By: campbellbarton
CC: dingto
Differential Revision: http://developer.blender.org/D79
Diffstat (limited to 'release/scripts/modules/sys_info.py')
-rw-r--r-- | release/scripts/modules/sys_info.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py index 83f2647c5b2..ef3e56209f0 100644 --- a/release/scripts/modules/sys_info.py +++ b/release/scripts/modules/sys_info.py @@ -118,6 +118,36 @@ def write_sysinfo(op): else: output.write("Blender was built without FFmpeg support\n") + output.write("\nOther Libraries:\n") + output.write(lilies) + ocio = bpy.app.ocio + output.write("OpenColorIO: ") + if ocio.supported: + if ocio.version_string == "fallback": + output.write("Blender was built with OpenColorIO, " + + "but it currently uses fallback color management.\n") + else: + output.write("%s\n" % (ocio.version_string)) + else: + output.write("Blender was built without OpenColorIO support\n") + + oiio = bpy.app.oiio + output.write("OpenImageIO: ") + if ocio.supported : + output.write("%s\n" % (oiio.version_string)) + else: + output.write("Blender was built without OpenImageIO support\n") + + output.write("OpenShadingLanguuage: ") + if bpy.app.build_options.cycles: + if bpy.app.build_options.cycles_osl: + from _cycles import osl_version_string + output.write("%s\n" % (osl_version_string)) + else: + output.write("Blender was built without OpenShadingLanguage support in Cycles\n") + else: + output.write("Blender was built without Cycles support\n") + if bpy.app.background: output.write("\nOpenGL: missing, background mode\n") else: |