25 {
"supported",
"Boolean, True when Blender is built with OpenColorIO support"},
26 {
"version",
"The OpenColorIO version as a tuple of 3 numbers"},
27 {
"version_string",
"The OpenColorIO version formatted as a string"},
33 "This module contains information about OpenColorIO blender is linked against",
44 if (ocio_info ==
nullptr) {
48#define SetObjItem(obj) PyStructSequence_SET_ITEM(ocio_info, pos++, obj)
54 "%2d, %2d, %2d", ocio_version.
major, ocio_version.
minor, ocio_version.
patch));
56 if (PyErr_Occurred()) [[unlikely]] {
PyObject * PyC_Tuple_Pack_I32(const Span< int > values)
static PyObject * make_ocio_info()
PyObject * BPY_app_ocio_struct()
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
static PyTypeObject BlenderAppOCIOType
static PyStructSequence_Desc app_ocio_info_desc
static PyStructSequence_Field app_ocio_info_fields[]
header-only compatibility defines.