|
Blender V4.3
|
#include <RNA_path.hh>
Public Attributes | |
| std::string | path |
| std::optional< std::string > | key = std::nullopt |
| std::optional< int > | index = std::nullopt |
An RNA path to a property, including an optional key/index for array and collection properties.
The semantics around the key and index fields are specific:
This type is intended to be convenient to construct with initializer lists:
NOTE: some older parts of Blender's code base use negative array indices as a magic value to mean things like "all array elements". However, magic values should specifically NOT be used in this type. Instead, simply leave the index unspecified. Unspecified indices can then be converted to a negative magic value at the API boundaries that need it, like so:
Definition at line 58 of file RNA_path.hh.
| std::optional<int> RNAPath::index = std::nullopt |
Definition at line 66 of file RNA_path.hh.
Referenced by clear_key_button_exec(), delete_key_button_exec(), blender::animrig::delete_keyframe(), insert_key_to_keying_set_path(), and pyrna_struct_keyframe_delete().
| std::optional<std::string> RNAPath::key = std::nullopt |
Key/index for array and collection properties. Any combination of index and key can be specified (including neither). In the case that both are specified, they should be redundant ways to access the same element.
Definition at line 65 of file RNA_path.hh.
| std::string RNAPath::path |
Definition at line 59 of file RNA_path.hh.
Referenced by blender::animrig::clear_keyframe(), and blender::animrig::delete_keyframe().