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#ifndef WITH_OPENCOLORIO
49# define SetStrItem(str) PyStructSequence_SET_ITEM(ocio_info, pos++, PyUnicode_FromString(str))
52#define SetObjItem(obj) PyStructSequence_SET_ITEM(ocio_info, pos++, obj)
54#ifdef WITH_OPENCOLORIO
59 "%2d, %2d, %2d", ocio_version.
major, ocio_version.
minor, ocio_version.
patch));
static PyObject * make_ocio_info()
static PyTypeObject BlenderAppOCIOType
static PyStructSequence_Desc app_ocio_info_desc
PyObject * BPY_app_ocio_struct()
static PyStructSequence_Field app_ocio_info_fields[]
PyObject * PyC_Tuple_Pack_I32(const blender::Span< int > values)
header-only compatibility defines.