How to distribute objects by defining two point?

in the above image, i want to distribute three objects between two points as shown. These two points will become boundary and define direction of distribution as well.
Is there any macro or rhinoscript that can do this function ?

Use ‘distribute’ command in rhino

obviously, i know that command but it distribute objects between first and last object. I want to distribute them between 1 and 2 point.

Hello- I guess a cheap way would be to place point objects at the two points and include these in the Distribute input.



yes, i do that currently. but it require extra command and also we have to define direction as well and have to delete the points. Actually, there are no distribute component in grasshopper.
i think this can be used by some script.