Blender V4.3
bpy_rna_anim.cc File Reference
#include <Python.h>
#include <cfloat>
#include "MEM_guardedalloc.h"
#include "BLI_string.h"
#include "BLI_string_utils.hh"
#include "BLI_utildefines.h"
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "ED_keyframing.hh"
#include "ANIM_keyframing.hh"
#include "BKE_anim_data.hh"
#include "BKE_animsys.h"
#include "BKE_context.hh"
#include "BKE_fcurve.hh"
#include "BKE_global.hh"
#include "BKE_idtype.hh"
#include "BKE_lib_id.hh"
#include "BKE_report.hh"
#include "RNA_access.hh"
#include "RNA_enum_types.hh"
#include "RNA_path.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "bpy_capi_utils.hh"
#include "bpy_rna.hh"
#include "bpy_rna_anim.hh"
#include "../generic/py_capi_rna.hh"
#include "../generic/python_utildefines.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"

Go to the source code of this file.

Functions

static int pyrna_struct_anim_args_parse_ex (PointerRNA *ptr, const char *error_prefix, const char *path, const char **r_path_full, int *r_index, bool *r_path_no_validate)
 
static int pyrna_struct_anim_args_parse (PointerRNA *ptr, const char *error_prefix, const char *path, const char **r_path_full, int *r_index)
 
static int pyrna_struct_anim_args_parse_no_resolve (PointerRNA *ptr, const char *error_prefix, const char *path, const char **r_path_full)
 
static int pyrna_struct_anim_args_parse_no_resolve_fallback (PointerRNA *ptr, const char *error_prefix, const char *path, const char **r_path_full, int *r_index)
 
static int pyrna_struct_keyframe_parse (PointerRNA *ptr, PyObject *args, PyObject *kw, const char *parse_str, const char *error_prefix, const char **r_path_full, int *r_index, float *r_cfra, const char **r_group_name, int *r_options, eBezTriple_KeyframeType *r_keytype)
 
PyObject * pyrna_struct_keyframe_insert (BPy_StructRNA *self, PyObject *args, PyObject *kw)
 
PyObject * pyrna_struct_keyframe_delete (BPy_StructRNA *self, PyObject *args, PyObject *kw)
 
PyObject * pyrna_struct_driver_add (BPy_StructRNA *self, PyObject *args)
 
PyObject * pyrna_struct_driver_remove (BPy_StructRNA *self, PyObject *args)
 

Variables

char pyrna_struct_keyframe_insert_doc []
 
char pyrna_struct_keyframe_delete_doc []
 
char pyrna_struct_driver_add_doc []
 
char pyrna_struct_driver_remove_doc []
 

Detailed Description

This file defines the animation related methods used in bpy_rna.cc.

Definition in file bpy_rna_anim.cc.

Function Documentation

◆ pyrna_struct_anim_args_parse()

static int pyrna_struct_anim_args_parse ( PointerRNA * ptr,
const char * error_prefix,
const char * path,
const char ** r_path_full,
int * r_index )
static

Definition at line 156 of file bpy_rna_anim.cc.

References ptr, and pyrna_struct_anim_args_parse_ex().

Referenced by pyrna_struct_driver_add(), and pyrna_struct_keyframe_parse().

◆ pyrna_struct_anim_args_parse_ex()

static int pyrna_struct_anim_args_parse_ex ( PointerRNA * ptr,
const char * error_prefix,
const char * path,
const char ** r_path_full,
int * r_index,
bool * r_path_no_validate )
static

◆ pyrna_struct_anim_args_parse_no_resolve()

static int pyrna_struct_anim_args_parse_no_resolve ( PointerRNA * ptr,
const char * error_prefix,
const char * path,
const char ** r_path_full )
static

◆ pyrna_struct_anim_args_parse_no_resolve_fallback()

static int pyrna_struct_anim_args_parse_no_resolve_fallback ( PointerRNA * ptr,
const char * error_prefix,
const char * path,
const char ** r_path_full,
int * r_index )
static

◆ pyrna_struct_driver_add()

◆ pyrna_struct_driver_remove()

◆ pyrna_struct_keyframe_delete()

◆ pyrna_struct_keyframe_insert()

◆ pyrna_struct_keyframe_parse()

static int pyrna_struct_keyframe_parse ( PointerRNA * ptr,
PyObject * args,
PyObject * kw,
const char * parse_str,
const char * error_prefix,
const char ** r_path_full,
int * r_index,
float * r_cfra,
const char ** r_group_name,
int * r_options,
eBezTriple_KeyframeType * r_keytype )
static

Variable Documentation

◆ pyrna_struct_driver_add_doc

char pyrna_struct_driver_add_doc[]
Initial value:
=
".. method:: driver_add(path, index=-1)\n"
"\n"
" Adds driver(s) to the given property\n"
"\n"
" :arg path: path to the property to drive, analogous to the fcurve's data path.\n"
" :type path: str\n"
" :arg index: array index of the property drive. Defaults to -1 for all indices or a single "
"channel if the property is not an array.\n"
" :type index: int\n"
" :return: The driver added or a list of drivers when index is -1.\n"
" :rtype: :class:`bpy.types.FCurve` | list[:class:`bpy.types.FCurve`]\n"

Definition at line 572 of file bpy_rna_anim.cc.

◆ pyrna_struct_driver_remove_doc

char pyrna_struct_driver_remove_doc[]
Initial value:
=
".. method:: driver_remove(path, index=-1)\n"
"\n"
" Remove driver(s) from the given property\n"
"\n"
" :arg path: path to the property to drive, analogous to the fcurve's data path.\n"
" :type path: str\n"
" :arg index: array index of the property drive. Defaults to -1 for all indices or a single "
"channel if the property is not an array.\n"
" :type index: int\n"
" :return: Success of driver removal.\n"
" :rtype: bool\n"

Definition at line 656 of file bpy_rna_anim.cc.

◆ pyrna_struct_keyframe_delete_doc

char pyrna_struct_keyframe_delete_doc[]
Initial value:
=
".. method:: keyframe_delete(data_path, index=-1, frame=bpy.context.scene.frame_current, "
"group=\"\")\n"
"\n"
" Remove a keyframe from this properties fcurve.\n"
"\n"
" :arg data_path: path to the property to remove a key, analogous to the fcurve's data "
"path.\n"
" :type data_path: str\n"
" :arg index: array index of the property to remove a key. Defaults to -1 removing all "
"indices or a single channel if the property is not an array.\n"
" :type index: int\n"
" :arg frame: The frame on which the keyframe is deleted, defaulting to the current frame.\n"
" :type frame: float\n"
" :arg group: The name of the group the F-Curve should be added to if it doesn't exist "
"yet.\n"
" :type group: str\n"
" :return: Success of keyframe deletion.\n"
" :rtype: bool\n"

Definition at line 450 of file bpy_rna_anim.cc.

◆ pyrna_struct_keyframe_insert_doc

char pyrna_struct_keyframe_insert_doc[]

Definition at line 291 of file bpy_rna_anim.cc.