blender/doc/python_api/examples
Alexander Gavrilov 36c6bcca1a Python API: expose the math mapping vertex positions to B-Bone segments.
Recently a user expressed interest in exporting baked animation
with B-Bone segments. Currently the python API already exposes
segment matrices via a PoseBone method, but there is no access
to the mapping of vertices to the segments.

Although currently the math is simple and easy to re-implement,
forcing Python add-ons to do that would cause a maintenance issue
if the mapping is ever changed later (it's quite dumb, ignoring
the rest pose curve, and there definitely is room for improvement).

This patch extracts the relevant math into a BKE function, and
exposes it in the python API as a new PoseBone method.

Pull Request: https://projects.blender.org/blender/blender/pulls/105419
2023-08-03 14:44:39 +02:00
..
aud.py Py API Docs: Fix audio docs example 2021-09-18 19:28:55 +02:00
blf.py PyAPI: remove deprecated blf.size() dpi argument 2023-05-23 12:02:10 +10:00
bmesh.ops.1.py
bpy.app.handlers.1.py
bpy.app.handlers.2.py Cleanup: pep8 2021-07-06 12:05:27 +10:00
bpy.app.handlers.py
bpy.app.timers.1.py
bpy.app.timers.2.py
bpy.app.timers.3.py
bpy.app.timers.4.py
bpy.app.timers.5.py Cleanup: run autopep8 on doc/ 2022-04-20 15:10:14 +10:00
bpy.app.translations.py Cleanup: Python API Docs: Text formating 2020-09-28 20:11:06 -04:00
bpy.context.property.py Python API: add bpy.context.property, for property under the mouse cursor 2023-05-26 21:33:26 +02:00
bpy.data.py
bpy.msgbus.1.py Cleanup: pep8 2021-07-06 12:05:27 +10:00
bpy.msgbus.2.py
bpy.msgbus.3.py
bpy.ops.1.py PyAPI: remove context override argument from bpy.ops 2023-05-23 14:34:09 +10:00
bpy.ops.2.py Cleanup: operator execution types didn't read well on one line 2020-10-09 12:14:22 +11:00
bpy.ops.3.py Docs: update examples to use Context.temp_override 2022-04-20 12:49:13 +10:00
bpy.ops.py PyAPI: remove context override argument from bpy.ops 2023-05-23 14:34:09 +10:00
bpy.props.1.py
bpy.props.2.py
bpy.props.3.py
bpy.props.4.py Py API doc: Add warning that py-defined property accessor callbacks may be called in threaded context. 2022-08-12 16:23:12 +02:00
bpy.props.5.py Py API doc: Add warning that py-defined property accessor callbacks may be called in threaded context. 2022-08-12 16:23:12 +02:00
bpy.props.py Py API doc: Add warning that py-defined property accessor callbacks may be called in threaded context. 2022-08-12 16:23:12 +02:00
bpy.types.AddonPreferences.1.py
bpy.types.BlendDataLibraries.load.py
bpy.types.BlendDataLibraries.write.py
bpy.types.Bone.convert_local_to_pose.py Cleanup: run autopep8 on doc/ 2022-04-20 15:10:14 +10:00
bpy.types.bpy_prop_collection.foreach_get.py
bpy.types.bpy_prop_collection.foreach_set.py
bpy.types.bpy_struct.is_property_set.py PyDoc: expanded documentation for bpy_struct.is_property_set 2020-12-08 20:52:31 +11:00
bpy.types.bpy_struct.keyframe_insert.1.py
bpy.types.bpy_struct.keyframe_insert.py
bpy.types.Context.temp_override.1.py Cleanup: use context.temp_override 2022-05-03 09:32:28 +10:00
bpy.types.Context.temp_override.2.py PyAPI: temporary context override support 2022-04-20 12:19:35 +10:00
bpy.types.Context.temp_override.3.py PyAPI: temporary context override support 2022-04-20 12:19:35 +10:00
bpy.types.Depsgraph.1.py
bpy.types.Depsgraph.2.py
bpy.types.Depsgraph.3.py
bpy.types.Depsgraph.4.py
bpy.types.Depsgraph.5.py
bpy.types.Depsgraph.6.py
bpy.types.Depsgraph.7.py Cleanup: pep8 2021-07-06 12:05:27 +10:00
bpy.types.ID.user_clear.1.py
bpy.types.Image.py Cleanup: format 2022-05-11 11:02:01 +10:00
bpy.types.Menu.1.py
bpy.types.Menu.2.py
bpy.types.Menu.3.py
bpy.types.Menu.4.py Fix T100423: Addon's custom context menu entries get overridden by other addons 2022-08-18 14:46:30 +02:00
bpy.types.Menu.py
bpy.types.Mesh.py Cleanup: Replace "UV's" with "UVs" 2023-01-10 14:50:13 -05:00
bpy.types.NodeTree.py
bpy.types.Object.py
bpy.types.Operator.1.py Cleanup: run autopep8 on doc/ 2022-04-20 15:10:14 +10:00
bpy.types.Operator.2.py Cleanup: run autopep8 on doc/ 2022-04-20 15:10:14 +10:00
bpy.types.Operator.3.py Cleanup: run autopep8 on doc/ 2022-04-20 15:10:14 +10:00
bpy.types.Operator.4.py Cleanup: run autopep8 on doc/ 2022-04-20 15:10:14 +10:00
bpy.types.Operator.5.py Python API Docs: explain the CANCELLED return code of operators. 2022-12-26 14:47:38 +02:00
bpy.types.Operator.6.py Cleanup: run autopep8 on doc/ 2022-04-20 15:10:14 +10:00
bpy.types.Operator.py Python API Docs: explain the CANCELLED return code of operators. 2022-12-26 14:47:38 +02:00
bpy.types.Panel.1.py
bpy.types.Panel.2.py
bpy.types.Panel.py
bpy.types.PoseBone.bbone_segment_matrix.py Python API: expose the math mapping vertex positions to B-Bone segments. 2023-08-03 14:44:39 +02:00
bpy.types.PropertyGroup.py
bpy.types.RenderEngine.py Docs: PyAPI: Replace use of the bgl module in the RenderEngine example 2021-05-14 18:29:23 -03:00
bpy.types.UIList.1.py Cleanup: use equality instead of contains for single-item sets 2022-03-30 11:27:54 +11:00
bpy.types.UIList.2.py Cleanup: use equality instead of contains for single-item sets 2022-03-30 11:27:54 +11:00
bpy.types.WindowManager.popup_menu.py
gpu.1.py PyAPI: remove deprecated 2D_/3D_ prefix (update docs) 2023-05-23 16:24:08 +10:00
gpu.2.py PyGPU: call 'GPU_shader_bind' in 'GPUShader.uniform_' methods 2022-09-19 09:40:20 -03:00
gpu.3.py PyAPI: remove deprecated 2D_/3D_ prefix for built-in shader names 2023-05-23 15:51:54 +10:00
gpu.4.py PyAPI: remove deprecated 2D_/3D_ prefix for built-in shader names 2023-05-23 15:51:54 +10:00
gpu.5.py PyAPI: remove deprecated 2D_/3D_ prefix for built-in shader names 2023-05-23 15:51:54 +10:00
gpu.6.py PyAPI: remove deprecated 2D_/3D_ prefix for built-in shader names 2023-05-23 15:51:54 +10:00
gpu.7.py PyGPU: call 'GPU_shader_bind' in 'GPUShader.uniform_' methods 2022-09-19 09:40:20 -03:00
gpu.8.py Cleanup: autopep8 2022-04-26 15:03:04 +10:00
gpu.9.py PyAPI Docs: Fix example not using keyword parameter 2021-10-15 17:55:31 -04:00
gpu.10.py PyGPU: call 'GPU_shader_bind' in 'GPUShader.uniform_' methods 2022-09-19 09:40:20 -03:00
mathutils.Color.py
mathutils.Euler.py
mathutils.kdtree.py
mathutils.Matrix.LocRotScale.py Mathutils: add a Matrix.LocRotScale constructor for combining channels. 2021-05-17 19:12:40 +03:00
mathutils.Matrix.py Mathutils: add a Matrix.LocRotScale constructor for combining channels. 2021-05-17 19:12:40 +03:00
mathutils.py
mathutils.Quaternion.py
mathutils.Vector.py