PropCollection
human/common_baseclasses/prop_collection.pyClass for replicating functionality of bpy_prop_collection.
This is used so substs of a prop collection can be used in the same way as the Blender built in prop collections. Some methods can only be used on the Blender prop collections, and will raise an exception if used on a custom prop collection.
| Attributes | ||
|---|---|---|
| is_bpy | isinstance | — |
| Methods | ||
| find() | int | Find index of item in prop collection. |
| get() | Union[ID, Any] | — |
| foreach_get() | — | |
| foreach_set() | — | |
| items() | list[Any] | — |
| keys() | list[Any] | — |
| values() | list[Any] | — |
| new() | — | |
| remove() | — | |
Attributes
No description yet.
Methods
Find index of item in prop collection.
| Parameter | Type | Description |
|---|---|---|
| item_name | str | Name of item to find |
Returns int — Index in list
No description yet.
| Parameter | Type | Description |
|---|---|---|
| item_name | str | — |
| default | Any default None | — |
Returns Union[ID, Any]
PropCollection.foreach_get(attr: str, sequence: ndarray)
sourceNo description yet.
| Parameter | Type | Description |
|---|---|---|
| attr | str | — |
| sequence | ndarray | — |
PropCollection.foreach_set(attr: str, sequence: ndarray)
sourceNo description yet.
| Parameter | Type | Description |
|---|---|---|
| attr | str | — |
| sequence | ndarray | — |
No description yet.
Returns list[Any]
No description yet.
Returns list[Any]
No description yet.
Returns list[Any]
No description yet.
| Parameter | Type | Description |
|---|---|---|
| items | Any default () | — |
No description yet.
| Parameter | Type | Description |
|---|---|---|
| items | str default () | — |