How do i CFrame a part with the in between orientation from 2 other parts?

Is there a way i can cframe a part in between 2 other parts orientation wise?

For an example:
I have 2 parts with a ropeconstraint in between
I need the red part Its CFrame to be like this CFrame.new(Block1.Position, Block2.Position), but make the X axis orientation be in between of the 2 parts depending on what position its at between the 2 parts.
Just like this:



How can i achieve this?

Maybe try getting the difference between the two orientations and dividing it to get an increment, then using that to get orientations at regular intervals between the two objects’ original orientations. Presumably, you would then do the same with position.