2024-09-24 11:30:38 +02:00
|
|
|
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
|
* \ingroup pythonintern
|
|
|
|
|
*/
|
|
|
|
|
|
2025-01-07 12:39:13 +01:00
|
|
|
#include <Python.h>
|
|
|
|
|
|
2024-09-24 11:30:38 +02:00
|
|
|
struct AnimationEvalContext;
|
|
|
|
|
struct ChannelDriver;
|
|
|
|
|
struct DriverTarget;
|
|
|
|
|
struct DriverVar;
|
|
|
|
|
struct PathResolvedRNA;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A version of #driver_get_variable_value which returns a #PyObject.
|
|
|
|
|
*/
|
2025-06-28 00:15:23 +00:00
|
|
|
[[nodiscard]] PyObject *pyrna_driver_get_variable_value(
|
|
|
|
|
const AnimationEvalContext *anim_eval_context,
|
|
|
|
|
ChannelDriver *driver,
|
|
|
|
|
DriverVar *dvar,
|
|
|
|
|
DriverTarget *dtar);
|
2024-09-24 11:30:38 +02:00
|
|
|
|
2025-06-28 00:15:23 +00:00
|
|
|
[[nodiscard]] PyObject *pyrna_driver_self_from_anim_rna(PathResolvedRNA *anim_rna);
|
|
|
|
|
[[nodiscard]] bool pyrna_driver_is_equal_anim_rna(const PathResolvedRNA *anim_rna,
|
|
|
|
|
const PyObject *py_anim_rna);
|