Blender  V3.3
Functions | Variables
bpy_rna_anim.c File Reference
#include <Python.h>
#include <float.h>
#include "MEM_guardedalloc.h"
#include "BLI_string.h"
#include "BLI_string_utils.h"
#include "BLI_utildefines.h"
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "ED_keyframes_edit.h"
#include "ED_keyframing.h"
#include "BKE_anim_data.h"
#include "BKE_animsys.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
#include "BKE_idtype.h"
#include "BKE_lib_id.h"
#include "BKE_report.h"
#include "RNA_access.h"
#include "RNA_enum_types.h"
#include "RNA_path.h"
#include "RNA_prototypes.h"
#include "WM_api.h"
#include "WM_types.h"
#include "bpy_capi_utils.h"
#include "bpy_rna.h"
#include "bpy_rna_anim.h"
#include "../generic/py_capi_rna.h"
#include "../generic/python_utildefines.h"
#include "DEG_depsgraph_build.h"

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)
 
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.c

Definition in file bpy_rna_anim.c.

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 151 of file bpy_rna_anim.c.

References NULL, 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()

PyObject* pyrna_struct_driver_add ( BPy_StructRNA self,
PyObject *  args 
)

◆ pyrna_struct_driver_remove()

PyObject* pyrna_struct_driver_remove ( BPy_StructRNA self,
PyObject *  args 
)

◆ pyrna_struct_keyframe_delete()

PyObject* pyrna_struct_keyframe_delete ( BPy_StructRNA self,
PyObject *  args,
PyObject *  kw 
)

◆ pyrna_struct_keyframe_insert()

PyObject* pyrna_struct_keyframe_insert ( BPy_StructRNA self,
PyObject *  args,
PyObject *  kw 
)

◆ 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 
)
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: string\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(s) added.\n"
" :rtype: :class:`bpy.types.FCurve` or list if index is -1 with an array property.\n"

Definition at line 515 of file bpy_rna_anim.c.

◆ 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: string\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: boolean\n"

Definition at line 597 of file bpy_rna_anim.c.

◆ 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: string\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: boolean\n"

Definition at line 399 of file bpy_rna_anim.c.

◆ pyrna_struct_keyframe_insert_doc

char pyrna_struct_keyframe_insert_doc[]

Definition at line 268 of file bpy_rna_anim.c.