bpy_prop
- class bpy.types.bpy_prop
built-in base class for all property classes.
- as_bytes()
Returns this string property as a byte rather than a Python string.
- Returns:
The string as bytes.
- Return type:
bytes
- path_from_id()
Returns the data path from the ID to this property (string).
- Returns:
The path from
bpy.types.bpy_struct.id_datato this property.- Return type:
str
- path_from_module()
Returns the full data path to this struct (as a string) from the bpy module.
- Returns:
The full path to the data.
- Return type:
str
- Raises:
ValueError –
if the input data cannot be converted into a full data path.
Note
Even if all input data is correct, this function might error out because Blender cannot derive a valid path. The incomplete path will be printed in the error message.
- update()
Execute the properties update callback.
Note
This is called when assigning a property, however in rare cases it’s useful to call explicitly.
- data
The data this property is using, type
bpy.types.bpy_struct
- id_data
The
bpy.types.IDobject this data-block is from or None, (not available for all data types) (readonly)- Type:
- rna_type
The property type for introspection.