Blender
V3.3
|
#include <Python.h>
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
#include "bmesh.h"
#include "bmesh_py_types.h"
#include "bmesh_py_types_customdata.h"
#include "bmesh_py_types_meshdata.h"
#include "../generic/py_capi_utils.h"
#include "../generic/python_utildefines.h"
#include "../mathutils/mathutils.h"
#include "BKE_customdata.h"
#include "DNA_meshdata_types.h"
Go to the source code of this file.
Functions | |
static CustomData * | bpy_bm_customdata_get (BMesh *bm, char htype) |
static CustomDataLayer * | bpy_bmlayeritem_get (BPy_BMLayerItem *self) |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__float_doc, "Generic float custom-data layer.\n\ntype: :class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__int_doc, "Generic int custom-data layer.\n\ntype: :class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__float_vector_doc, "Generic 3D vector with float precision custom-data layer.\n\ntype: " ":class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__float_color_doc, "Generic RGBA color with float precision custom-data layer.\n\ntype: " ":class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__color_doc, "Generic RGBA color with 8-bit precision custom-data layer.\n\ntype: " ":class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__string_doc, "Generic string custom-data layer (exposed as bytes, 255 max length).\n\ntype: " ":class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__deform_doc, "Vertex deform weight :class:`BMDeformVert` (TODO).\n\ntype: " ":class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__shape_doc, "Vertex shapekey absolute location (as a 3D Vector).\n\n:type: :class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__bevel_weight_doc, "Bevel weight float in [0 - 1].\n\n:type: :class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__crease_doc, "Crease for subdivision surface - float in [0 - 1].\n\n:type: " ":class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__uv_doc, "Accessor for :class:`BMLoopUV` UV (as a 2D Vector).\n\ntype: :class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__skin_doc, "Accessor for skin layer.\n\ntype: :class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__paint_mask_doc, "Accessor for paint mask layer.\n\ntype: :class:`BMLayerCollection`") | |
PyDoc_STRVAR (bpy_bmlayeraccess_collection__face_map_doc, "FaceMap custom-data layer.\n\ntype: :class:`BMLayerCollection`") | |
static PyObject * | bpy_bmlayeraccess_collection_get (BPy_BMLayerAccess *self, void *flag) |
PyDoc_STRVAR (bpy_bmlayercollection_active_doc, "The active layer of this type (read-only).\n\n:type: :class:`BMLayerItem`") | |
static PyObject * | bpy_bmlayercollection_active_get (BPy_BMLayerItem *self, void *UNUSED(flag)) |
PyDoc_STRVAR (bpy_bmlayercollection_is_singleton_doc, "True if there can exists only one layer of this type (read-only).\n\n:type: boolean") | |
static PyObject * | bpy_bmlayercollection_is_singleton_get (BPy_BMLayerItem *self, void *UNUSED(flag)) |
PyDoc_STRVAR (bpy_bmlayercollection_name_doc, "The layers unique name (read-only).\n\n:type: string") | |
static PyObject * | bpy_bmlayeritem_name_get (BPy_BMLayerItem *self, void *UNUSED(flag)) |
PyDoc_STRVAR (bpy_bmlayeritem_copy_from_doc, ".. method:: copy_from(other)\n" "\n" " Return a copy of the layer\n" "\n" " :arg other: Another layer to copy from.\n" " :arg other: :class:`BMLayerItem`\n") | |
static PyObject * | bpy_bmlayeritem_copy_from (BPy_BMLayerItem *self, BPy_BMLayerItem *value) |
PyDoc_STRVAR (bpy_bmlayercollection_verify_doc, ".. method:: verify()\n" "\n" " Create a new layer or return an existing active layer\n" "\n" " :return: The newly verified layer.\n" " :rtype: :class:`BMLayerItem`\n") | |
static PyObject * | bpy_bmlayercollection_verify (BPy_BMLayerCollection *self) |
PyDoc_STRVAR (bpy_bmlayercollection_new_doc, ".. method:: new(name)\n" "\n" " Create a new layer\n" "\n" " :arg name: Optional name argument (will be made unique).\n" " :type name: string\n" " :return: The newly created layer.\n" " :rtype: :class:`BMLayerItem`\n") | |
static PyObject * | bpy_bmlayercollection_new (BPy_BMLayerCollection *self, PyObject *args) |
PyDoc_STRVAR (bpy_bmlayercollection_remove_doc, ".. method:: remove(layer)\n" "\n" " Remove a layer\n" "\n" " :arg layer: The layer to remove.\n" " :type layer: :class:`BMLayerItem`\n") | |
static PyObject * | bpy_bmlayercollection_remove (BPy_BMLayerCollection *self, BPy_BMLayerItem *value) |
PyDoc_STRVAR (bpy_bmlayercollection_keys_doc, ".. method:: keys()\n" "\n" " Return the identifiers of collection members\n" " (matching pythons dict.keys() functionality).\n" "\n" " :return: the identifiers for each member of this collection.\n" " :rtype: list of strings\n") | |
static PyObject * | bpy_bmlayercollection_keys (BPy_BMLayerCollection *self) |
PyDoc_STRVAR (bpy_bmlayercollection_items_doc, ".. method:: items()\n" "\n" " Return the identifiers of collection members\n" " (matching pythons dict.items() functionality).\n" "\n" " :return: (key, value) pairs for each member of this collection.\n" " :rtype: list of tuples\n") | |
static PyObject * | bpy_bmlayercollection_items (BPy_BMLayerCollection *self) |
PyDoc_STRVAR (bpy_bmlayercollection_values_doc, ".. method:: values()\n" "\n" " Return the values of collection\n" " (matching pythons dict.values() functionality).\n" "\n" " :return: the members of this collection.\n" " :rtype: list\n") | |
static PyObject * | bpy_bmlayercollection_values (BPy_BMLayerCollection *self) |
PyDoc_STRVAR (bpy_bmlayercollection_get_doc, ".. method:: get(key, default=None)\n" "\n" " Returns the value of the layer matching the key or default\n" " when not found (matches pythons dictionary function of the same name).\n" "\n" " :arg key: The key associated with the layer.\n" " :type key: string\n" " :arg default: Optional argument for the value to return if\n" " *key* is not found.\n" " :type default: Undefined\n") | |
static PyObject * | bpy_bmlayercollection_get (BPy_BMLayerCollection *self, PyObject *args) |
static Py_ssize_t | bpy_bmlayercollection_length (BPy_BMLayerCollection *self) |
static PyObject * | bpy_bmlayercollection_subscript_str (BPy_BMLayerCollection *self, const char *keyname) |
static PyObject * | bpy_bmlayercollection_subscript_int (BPy_BMLayerCollection *self, int keynum) |
static PyObject * | bpy_bmlayercollection_subscript_slice (BPy_BMLayerCollection *self, Py_ssize_t start, Py_ssize_t stop) |
static PyObject * | bpy_bmlayercollection_subscript (BPy_BMLayerCollection *self, PyObject *key) |
static int | bpy_bmlayercollection_contains (BPy_BMLayerCollection *self, PyObject *value) |
static PyObject * | bpy_bmlayercollection_iter (BPy_BMLayerCollection *self) |
PyDoc_STRVAR (bpy_bmlayeraccess_type_doc, "Exposes custom-data layer attributes.") | |
PyDoc_STRVAR (bpy_bmlayercollection_type_doc, "Gives access to a collection of custom-data layers of the same type and behaves " "like python dictionaries, " "except for the ability to do list like index access.") | |
PyDoc_STRVAR (bpy_bmlayeritem_type_doc, "Exposes a single custom data layer, " "their main purpose is for use as item accessors to custom-data when used with " "vert/edge/face/loop data.") | |
PyObject * | BPy_BMLayerAccess_CreatePyObject (BMesh *bm, const char htype) |
PyObject * | BPy_BMLayerCollection_CreatePyObject (BMesh *bm, const char htype, int type) |
PyObject * | BPy_BMLayerItem_CreatePyObject (BMesh *bm, const char htype, int type, int index) |
void | BPy_BM_init_types_customdata (void) |
static void * | bpy_bmlayeritem_ptr_get (BPy_BMElem *py_ele, BPy_BMLayerItem *py_layer) |
PyObject * | BPy_BMLayerItem_GetItem (BPy_BMElem *py_ele, BPy_BMLayerItem *py_layer) |
BMElem.__getitem__() / setitem() More... | |
int | BPy_BMLayerItem_SetItem (BPy_BMElem *py_ele, BPy_BMLayerItem *py_layer, PyObject *py_value) |
Variables | |
static PyGetSetDef | bpy_bmlayeraccess_vert_getseters [] |
static PyGetSetDef | bpy_bmlayeraccess_edge_getseters [] |
static PyGetSetDef | bpy_bmlayeraccess_face_getseters [] |
static PyGetSetDef | bpy_bmlayeraccess_loop_getseters [] |
static PyGetSetDef | bpy_bmlayercollection_getseters [] |
static PyGetSetDef | bpy_bmlayeritem_getseters [] |
static struct PyMethodDef | bpy_bmlayeritem_methods [] |
static struct PyMethodDef | bpy_bmelemseq_methods [] |
static PySequenceMethods | bpy_bmlayercollection_as_sequence |
static PyMappingMethods | bpy_bmlayercollection_as_mapping |
PyTypeObject | BPy_BMLayerAccessVert_Type |
PyTypeObject | BPy_BMLayerAccessEdge_Type |
PyTypeObject | BPy_BMLayerAccessFace_Type |
PyTypeObject | BPy_BMLayerAccessLoop_Type |
PyTypeObject | BPy_BMLayerCollection_Type |
PyTypeObject | BPy_BMLayerItem_Type |
This file defines the types for 'BMesh.verts/edges/faces/loops.layers' customdata layer access.
Definition in file bmesh_py_types_customdata.c.
|
static |
Definition at line 30 of file bmesh_py_types_customdata.c.
References BLI_assert_unreachable, bm, BM_EDGE, BM_FACE, BM_LOOP, BM_VERT, BMesh::edata, BMesh::ldata, NULL, BMesh::pdata, and BMesh::vdata.
Referenced by bpy_bmlayercollection_active_get(), bpy_bmlayercollection_contains(), bpy_bmlayercollection_items(), bpy_bmlayercollection_keys(), bpy_bmlayercollection_length(), bpy_bmlayercollection_new(), bpy_bmlayercollection_remove(), bpy_bmlayercollection_subscript_str(), bpy_bmlayercollection_values(), bpy_bmlayercollection_verify(), bpy_bmlayeritem_copy_from(), bpy_bmlayeritem_get(), and bpy_bmlayeritem_ptr_get().
Definition at line 983 of file bmesh_py_types_customdata.c.
References bpy_bmelemseq_methods, bpy_bmlayeraccess_edge_getseters, bpy_bmlayeraccess_face_getseters, bpy_bmlayeraccess_loop_getseters, bpy_bmlayeraccess_vert_getseters, BPy_BMLayerAccessEdge_Type, BPy_BMLayerAccessFace_Type, BPy_BMLayerAccessLoop_Type, BPy_BMLayerAccessVert_Type, bpy_bmlayercollection_as_mapping, bpy_bmlayercollection_as_sequence, bpy_bmlayercollection_getseters, bpy_bmlayercollection_iter(), BPy_BMLayerCollection_Type, bpy_bmlayeritem_getseters, bpy_bmlayeritem_methods, BPy_BMLayerItem_Type, and NULL.
Referenced by BPyInit_bmesh().
|
static |
Definition at line 111 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_OBJ, BPy_BMLayerCollection_CreatePyObject(), POINTER_AS_INT, self, and type.
PyObject* BPy_BMLayerAccess_CreatePyObject | ( | BMesh * | bm, |
const char | htype | ||
) |
Definition at line 933 of file bmesh_py_types_customdata.c.
References BLI_assert_unreachable, bm, BM_EDGE, BM_FACE, BM_LOOP, BM_VERT, BPy_BMLayerAccessEdge_Type, BPy_BMLayerAccessFace_Type, BPy_BMLayerAccessLoop_Type, BPy_BMLayerAccessVert_Type, NULL, and type.
Referenced by bpy_bmelemseq_layers_get().
|
static |
Definition at line 122 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_OBJ, bpy_bm_customdata_get(), BPy_BMLayerItem_CreatePyObject(), CustomData_get_active_layer(), data, and self.
|
static |
Definition at line 854 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_INT, bpy_bm_customdata_get(), CustomData_get_named_layer_index(), data, NULL, and self.
PyObject* BPy_BMLayerCollection_CreatePyObject | ( | BMesh * | bm, |
const char | htype, | ||
int | type | ||
) |
Definition at line 964 of file bmesh_py_types_customdata.c.
References bm, BPy_BMLayerCollection_Type, and type.
Referenced by bpy_bmlayeraccess_collection_get().
|
static |
Definition at line 657 of file bmesh_py_types_customdata.c.
|
static |
Definition at line 142 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_OBJ, CustomData_layertype_is_singleton(), and self.
|
static |
Definition at line 587 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_OBJ, bpy_bm_customdata_get(), BPy_BMLayerItem_CreatePyObject(), CustomData_get_layer_index(), CustomData_number_of_layers(), data, PyTuple_SET_ITEMS, ret, and self.
|
static |
Definition at line 896 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_OBJ, bpy_bmlayercollection_subscript_slice(), NULL, and ret.
Referenced by BPy_BM_init_types_customdata().
|
static |
Definition at line 552 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_OBJ, bpy_bm_customdata_get(), CustomData_get_layer_index(), CustomData_number_of_layers(), data, ret, and self.
|
static |
Definition at line 713 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_INT, bpy_bm_customdata_get(), CustomData_number_of_layers(), data, and self.
Referenced by bpy_bmlayercollection_subscript(), bpy_bmlayercollection_subscript_int(), and bpy_bmlayercollection_subscript_slice().
|
static |
Definition at line 480 of file bmesh_py_types_customdata.c.
References BLI_assert, BM_data_layer_add(), BM_data_layer_add_named(), BPY_BM_CHECK_OBJ, bpy_bm_customdata_get(), BPy_BMLayerItem_CreatePyObject(), CustomData_has_layer(), CustomData_layertype_is_singleton(), CustomData_number_of_layers(), data, NULL, and self.
|
static |
Definition at line 519 of file bmesh_py_types_customdata.c.
References BPy_BMLayerItem::bm, BM_data_layer_free_n(), BPY_BM_CHECK_OBJ, bpy_bm_customdata_get(), BPy_BMLayerItem_Check, data, BPy_BMLayerItem::htype, BPy_BMLayerItem::index, NULL, self, and BPy_BMLayerItem::type.
|
static |
Definition at line 792 of file bmesh_py_types_customdata.c.
References bpy_bmlayercollection_length(), bpy_bmlayercollection_subscript_int(), bpy_bmlayercollection_subscript_slice(), bpy_bmlayercollection_subscript_str(), CLAMP_MIN, len, and NULL.
|
static |
Definition at line 743 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_OBJ, bpy_bmlayercollection_length(), BPy_BMLayerItem_CreatePyObject(), len, NULL, and self.
Referenced by bpy_bmlayercollection_subscript().
|
static |
Definition at line 763 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_OBJ, bpy_bmlayercollection_length(), BPy_BMLayerItem_CreatePyObject(), count, len, and self.
Referenced by bpy_bmlayercollection_iter(), and bpy_bmlayercollection_subscript().
|
static |
Definition at line 724 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_OBJ, bpy_bm_customdata_get(), BPy_BMLayerItem_CreatePyObject(), CustomData_get_named_layer(), data, NULL, and self.
Referenced by bpy_bmlayercollection_subscript().
|
static |
Definition at line 622 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_OBJ, bpy_bm_customdata_get(), BPy_BMLayerItem_CreatePyObject(), CustomData_get_layer_index(), CustomData_number_of_layers(), data, ret, and self.
|
static |
Definition at line 450 of file bmesh_py_types_customdata.c.
References BLI_assert, BM_data_layer_add(), BPY_BM_CHECK_OBJ, bpy_bm_customdata_get(), BPy_BMLayerItem_CreatePyObject(), CustomData_get_active_layer(), data, and self.
|
static |
Definition at line 409 of file bmesh_py_types_customdata.c.
References BM_data_layer_copy(), BPY_BM_CHECK_OBJ, BPY_BM_CHECK_SOURCE_OBJ, bpy_bm_customdata_get(), BPy_BMLayerItem_Check, bpy_bmlayeritem_get(), data, BPy_BMLayerItem::htype, BPy_BMLayerItem::index, NULL, self, and BPy_BMLayerItem::type.
PyObject* BPy_BMLayerItem_CreatePyObject | ( | BMesh * | bm, |
const char | htype, | ||
int | type, | ||
int | index | ||
) |
Definition at line 973 of file bmesh_py_types_customdata.c.
References bm, BPy_BMLayerItem_Type, and type.
Referenced by bpy_bmlayercollection_active_get(), bpy_bmlayercollection_items(), bpy_bmlayercollection_new(), bpy_bmlayercollection_subscript_int(), bpy_bmlayercollection_subscript_slice(), bpy_bmlayercollection_subscript_str(), bpy_bmlayercollection_values(), and bpy_bmlayercollection_verify().
|
static |
Definition at line 47 of file bmesh_py_types_customdata.c.
References bpy_bm_customdata_get(), CustomData_get_layer_index_n(), data, NULL, and self.
Referenced by bpy_bmlayeritem_copy_from(), and bpy_bmlayeritem_name_get().
PyObject* BPy_BMLayerItem_GetItem | ( | BPy_BMElem * | py_ele, |
BPy_BMLayerItem * | py_layer | ||
) |
BMElem.__getitem__() / setitem()
Assume all error checks are done, eg: uv = vert[uv_layer]
Definition at line 1096 of file bmesh_py_types_customdata.c.
References BPy_BMDeformVert_CreatePyObject(), bpy_bmlayeritem_ptr_get(), BPy_BMLoopColor_CreatePyObject(), BPy_BMLoopUV_CreatePyObject(), BPy_BMVertSkin_CreatePyObject(), CD_BWEIGHT, CD_CREASE, CD_FACEMAP, CD_MDEFORMVERT, CD_MLOOPUV, CD_MVERT_SKIN, CD_PAINT_MASK, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_STRING, CD_SHAPEKEY, NULL, ret, MStringProperty::s, MStringProperty::s_len, BPy_BMLayerItem::type, UNLIKELY, and Vector_CreatePyObject_wrap().
Referenced by bpy_bmelem_subscript().
|
static |
Definition at line 151 of file bmesh_py_types_customdata.c.
References BPY_BM_CHECK_OBJ, bpy_bmlayeritem_get(), CustomDataLayer::name, and NULL.
|
static |
helper function for get/set, NULL return means the error is set
Definition at line 1059 of file bmesh_py_types_customdata.c.
References BPy_BMElem::bm, BPy_BMLayerItem::bm, bpy_bm_customdata_get(), BPy_BMElem_StringFromHType_ex(), BPy_BMLayerItem_Check, CustomData_bmesh_get_n(), BMHeader::data, data, BPy_BMElem::ele, BMElem::head, BMHeader::htype, BPy_BMLayerItem::htype, BPy_BMLayerItem::index, NULL, BPy_BMLayerItem::type, and UNLIKELY.
Referenced by BPy_BMLayerItem_GetItem(), and BPy_BMLayerItem_SetItem().
int BPy_BMLayerItem_SetItem | ( | BPy_BMElem * | py_ele, |
BPy_BMLayerItem * | py_layer, | ||
PyObject * | py_value | ||
) |
Definition at line 1167 of file bmesh_py_types_customdata.c.
References BPy_BMDeformVert_AssignPyObject(), bpy_bmlayeritem_ptr_get(), BPy_BMLoopColor_AssignPyObject(), BPy_BMLoopUV_AssignPyObject(), BPy_BMVertSkin_AssignPyObject(), CD_BWEIGHT, CD_CREASE, CD_FACEMAP, CD_MDEFORMVERT, CD_MLOOPUV, CD_MVERT_SKIN, CD_PAINT_MASK, CD_PROP_BYTE_COLOR, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT3, CD_PROP_INT32, CD_PROP_STRING, CD_SHAPEKEY, clamp_f(), copy_v3_v3(), mathutils_array_parse(), NULL, ret, MStringProperty::s, MStringProperty::s_len, BPy_BMLayerItem::type, and UNLIKELY.
Referenced by bpy_bmelem_ass_subscript().
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__bevel_weight_doc | , |
"Bevel weight float in .\n\n:type: :class:`BMLayerCollection`" | [0 - 1] | ||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__color_doc | , |
"Generic RGBA color with 8-bit precision custom-data layer.\n\ntype: " ":class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__crease_doc | , |
"Crease for subdivision surface - float in .\n\n:type: " ":class:`BMLayerCollection`" | [0 - 1] | ||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__deform_doc | , |
"Vertex deform weight :class:`BMDeformVert` (TODO).\n\ntype: " ":class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__face_map_doc | , |
"FaceMap custom-data layer.\n\ntype: :class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__float_color_doc | , |
"Generic RGBA color with float precision custom-data layer.\n\ntype: " ":class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__float_doc | , |
"Generic float custom-data layer.\n\ntype: :class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__float_vector_doc | , |
"Generic 3D vector with float precision custom-data layer.\n\ntype: " ":class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__int_doc | , |
"Generic int custom-data layer.\n\ntype: :class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__paint_mask_doc | , |
"Accessor for paint mask layer.\n\ntype: :class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__shape_doc | , |
"Vertex shapekey absolute location (as a 3D Vector).\n\n:type: :class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__skin_doc | , |
"Accessor for skin layer.\n\ntype: :class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__string_doc | , |
"Generic string custom-data layer (exposed as bytes, 255 max length).\n\ntype: " ":class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_collection__uv_doc | , |
"Accessor for :class:`BMLoopUV` UV (as a 2D Vector).\n\ntype: :class:`BMLayerCollection`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeraccess_type_doc | , |
"Exposes custom-data layer attributes." | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayercollection_active_doc | , |
"The active layer of this type (read-only).\n\n:type: :class:`BMLayerItem`" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayercollection_get_doc | , |
".. method:: get(key, default=None)\n" "\n" " Returns the value of the layer matching the key or default\n" " when not found (matches pythons dictionary function of the same name).\n" "\n" " :arg key: The key associated with the layer.\n" " :type key: string\n" " :arg default: Optional argument for the value to return if\n" " *key* is not found.\n" " :type default: Undefined\n" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayercollection_is_singleton_doc | , |
"True if there can exists only one layer of this type (read-only).\n\n:type: boolean" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayercollection_items_doc | , |
".. method:: items()\n" "\n" " Return the identifiers of collection members\n" " (matching pythons dict.items() functionality).\n" "\n" " :return: (key, value) pairs for each member of this collection.\n" " :rtype: list of tuples\n" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayercollection_keys_doc | , |
".. method:: keys()\n" "\n" " Return the identifiers of collection members\n" " (matching pythons dict.keys() functionality).\n" "\n" " :return: the identifiers for each member of this collection.\n" " :rtype: list of strings\n" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayercollection_name_doc | , |
"The layers unique name (read-only).\n\n:type: string" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayercollection_new_doc | , |
".. method:: new(name)\n" "\n" " Create a new layer\n" "\n" " :arg name: Optional name argument (will be made unique).\n" " :type name: string\n" " :return: The newly created layer.\n" " :rtype: :class:`BMLayerItem`\n" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayercollection_remove_doc | , |
".. method:: remove(layer)\n" "\n" " Remove a layer\n" "\n" " :arg layer: The layer to remove.\n" " :type layer: :class:`BMLayerItem`\n" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayercollection_type_doc | , |
"Gives access to a collection of custom-data layers of the same type and behaves " "like python | dictionaries, | ||
" "except for the ability to do list like index access." | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayercollection_values_doc | , |
".. method:: values()\n" "\n" " Return the values of collection\n" " (matching pythons dict.values() functionality).\n" "\n" " :return: the members of this collection.\n" " :rtype: list\n" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayercollection_verify_doc | , |
".. method:: verify()\n" "\n" " Create a new layer or return an existing active layer\n" "\n" " :return: The newly verified layer.\n" " :rtype: :class:`BMLayerItem`\n" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeritem_copy_from_doc | , |
".. method:: copy_from(other)\n" "\n" " Return a copy of the layer\n" "\n" " :arg other: Another layer to copy from.\n" " :arg other: :class:`BMLayerItem`\n" | |||
) |
PyDoc_STRVAR | ( | bpy_bmlayeritem_type_doc | , |
"Exposes a single custom data | layer, | ||
" "their main purpose is for use as item accessors to custom-data when used with " "vert/edge/face/loop data." | |||
) |
|
static |
Definition at line 657 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata().
|
static |
Definition at line 232 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata().
|
static |
Definition at line 285 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata().
|
static |
Definition at line 333 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata().
|
static |
Definition at line 165 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata().
PyTypeObject BPy_BMLayerAccessEdge_Type |
Definition at line 927 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
PyTypeObject BPy_BMLayerAccessFace_Type |
Definition at line 928 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
PyTypeObject BPy_BMLayerAccessLoop_Type |
Definition at line 929 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
PyTypeObject BPy_BMLayerAccessVert_Type |
Definition at line 926 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerAccess_CreatePyObject(), and BPyInit_bmesh_types().
|
static |
Definition at line 887 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata().
|
static |
Definition at line 873 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata().
|
static |
Definition at line 373 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata().
PyTypeObject BPy_BMLayerCollection_Type |
Definition at line 930 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerCollection_CreatePyObject(), and BPyInit_bmesh_types().
|
static |
Definition at line 389 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata().
|
static |
Definition at line 657 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata().
PyTypeObject BPy_BMLayerItem_Type |
Definition at line 931 of file bmesh_py_types_customdata.c.
Referenced by BPy_BM_init_types_customdata(), BPy_BMLayerItem_CreatePyObject(), and BPyInit_bmesh_types().