← All ideas
  • Published 23 Mar 2020

Get in API matrix transform_orientation_slots and transform_pivot_point

I started developing my gizmo tool for blender and ran into a problem regarding position and orientation. For a tool like a 3D manipulator, it is incredibly difficult to describe all the existing use cases. Different orientations, different positions of the selected object, different types of objects. For developers, it would be cool to get access to the transform_orientation_slots and transform_pivot_point matrices via the API. They are already described in the tool blender. It is enough to give access to them. This will help more developers make their own tools.

gizmo_zb.png

100%

Development Status: Open

Upvote 15 Downvote 0
derksen
23 Mar 2020

2 Comments

Oskar

Yep, that would be great! I had to deal with the same problem and I wrote a post on Devtalk that might be helpful if you are working on a workaround.

1
derksen Author

* @Oskar * This is a very necessary function, since I have a huge number of ideas for blender tools and modifiers, and all of them need an orientation and position matrix. And for all of them, you need to write the matrix again, it is very long and my knowledge is not always enough for this. For example, orient normal. For a non-modal operator, it is very easy to get a matrix, as you advised me via custom orient. But for functions with draw, it is not possible to get the normal matrix in real time. To do this, you need to calculate it again. Not only is it slow through Python, but it's also very difficult.

1