All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
pyConversions.h
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_USD_PY_CONVERSIONS_H
8#define PXR_USD_USD_PY_CONVERSIONS_H
9
10#include "pxr/pxr.h"
11#include "pxr/usd/usd/api.h"
12#include "pxr/base/tf/pyObjWrapper.h"
13
14PXR_NAMESPACE_OPEN_SCOPE
15
16class VtValue;
17class TfToken;
19
20// XXX: DEPRECATED. This function does nothing except convert \p value to
21// python. Do not call, it will be removed.
22USD_API
23TfPyObjWrapper UsdVtValueToPython(const VtValue &value);
24
31USD_API
32VtValue UsdPythonToSdfType(TfPyObjWrapper pyVal,
33 SdfValueTypeName const &targetType);
34
46USD_API
47bool UsdPythonToMetadataValue(const TfToken &key, const TfToken &keyPath,
48 TfPyObjWrapper pyVal, VtValue *result);
49
50
51PXR_NAMESPACE_CLOSE_SCOPE
52
53#endif // PXR_USD_USD_PY_CONVERSIONS_H
Represents a value type name, i.e.
Definition: valueTypeName.h:71
Boost Python object wrapper.
Definition: pyObjWrapper.h:79
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition: value.h:147