MAXScript FAQ > Working With Scene Nodes > How do I create a line between two points? |
In order to create a simple line between two points, you have to perform the following steps:
Create a new SplineShape object, position at the first point.
Add a new corner Knot at the second position. Tell both knots to define a linear segment.
Here is the complete function implementing these steps: