Scale primitive between 2 positions?

Hi everyone,
I have the following scenario:
1 cylinder with with the pivot at one of it’s endings and 2 vec3 positions
How can I reliably scale it so it fits and rotates between the 2 positions?

Can you link the project?

Unfortunately it’s a private project but I can explain it a bit better

@hhoria ok! I’ll be happy to help. I am just slightly confused on what you mean. But here’s what I think you should do in the meantime. Try looking at the position (x,y,z) of the vec3 positions. Then scale your cylinder to the same positions by changing it manually instead of with your cursor. You can be more precise that way.