I have a duct ventilation accessory, and I would like to apply a rotation to it on its axis (angle defined by the XY and Z plane)
I started a script to apply this rotation. He works.
But now we need to know the current angle to calculate the angle of rotation to apply.
This is where I’m stuck
On image 1, the floor view, where I have to apply the rotation on the family on the right
On image 2, a section (with an example of an angle)