Blender V5.0
bpy_app_usd.cc File Reference
#include "BLI_utildefines.h"
#include <Python.h>
#include "../generic/python_compat.hh"
#include "bpy_app_usd.hh"
#include "../generic/py_capi_utils.hh"

Go to the source code of this file.

Macros

#define SetStrItem(str)
#define SetObjItem(obj)

Functions

static PyObject * make_usd_info ()
PyObject * BPY_app_usd_struct ()

Variables

static PyTypeObject BlenderAppUSDType
static PyStructSequence_Field app_usd_info_fields []
static PyStructSequence_Desc app_usd_info_desc

Macro Definition Documentation

◆ SetObjItem

#define SetObjItem ( obj)
Value:
PyStructSequence_SET_ITEM(usd_info, pos++, obj)
uint pos

Referenced by make_usd_info().

◆ SetStrItem

#define SetStrItem ( str)
Value:
PyStructSequence_SET_ITEM(usd_info, pos++, PyUnicode_FromString(str))
#define str(s)

Referenced by make_usd_info().

Function Documentation

◆ BPY_app_usd_struct()

PyObject * BPY_app_usd_struct ( )
nodiscard

Definition at line 82 of file bpy_app_usd.cc.

References app_usd_info_desc, BlenderAppUSDType, make_usd_info(), Py_HashPointer, and ret.

Referenced by make_app_info().

◆ make_usd_info()

PyObject * make_usd_info ( )
static

Variable Documentation

◆ app_usd_info_desc

PyStructSequence_Desc app_usd_info_desc
static
Initial value:
= {
"bpy.app.usd",
"This module contains information about the Universal Scene Description library Bender is "
"linked against",
}
#define ARRAY_SIZE(arr)
static PyStructSequence_Field app_usd_info_fields[]

Definition at line 31 of file bpy_app_usd.cc.

Referenced by BPY_app_usd_struct().

◆ app_usd_info_fields

PyStructSequence_Field app_usd_info_fields[]
static
Initial value:
= {
{"supported", "Boolean, True when Blender is built with USD support"},
{"version", "The USD version as a tuple of 3 numbers"},
{"version_string", "The USD version formatted as a string"},
{nullptr},
}

Definition at line 24 of file bpy_app_usd.cc.

◆ BlenderAppUSDType

PyTypeObject BlenderAppUSDType
static

Definition at line 22 of file bpy_app_usd.cc.

Referenced by BPY_app_usd_struct(), and make_usd_info().