How is a function added to the API in blender?

I’m interested in how to add a parameter or function from the blender to the Python API so that developers can access it later.

Which type/module is this in?

I would like to add API access to orientation matrices to create tools. I found their calculations in transform_orientation.c

This could be added to the Scene, optionally taking a 3D view argument.

Scene functions are located in rna_scene_api.c.

See rna_Bone_convert_local_to_pose for an example of an API function that returns a matrix.

1 Like

thank you very much, you have helped me a lot :slightly_smiling_face: