Skip to content

mtShortestPath


mtShortestPath generates splines by finding the shortest path between two object points along the polygon edges.

Spline Growth settings enable organic animation effects.

mtShortestPath001.jpg

TerraformFX terrain as a child of mtShortestPath in the Points Mode setting of Random Selection.


There are two modes for defining which object vertices mtShortestPath will use as its start and end points: Random Selection (the default mode) and Fixed Selection.

Random start and end points will be chosen from the object vertices.

MeshTools_mtShortestPath_Points Mode_Random Selection_v02.jpg

Start and end points, in Random Selection mode, with the shortest path generated between them.

You can define how many starting points mtShortestPath will use.

Every start point will draw a path to every end point.

MeshTools_mtShortestPath_Points Mode_Random Selection_Starting Number_v01.jpg

Random Selection mode, with Display tab options enabled. The Plane on the left has a Starting Number of 1 and the Plane on the right has a Starting Number of 12.

Change this value to use different randomly-chosen start points.

Instead of randomly selecting start points, you can use selection tags or a vertex map to define them.

Drag the tag from the Object Manager into the Starting Source link field.

MeshTools_mtShortestPath_Points Mode_Random Selection_Point Selection_v04.jpg

The Plane on the left has a polygon selection tag, which is displayed in the viewport. An identical Plane is on the right, as a child of a mtShortestPath, driving the start point positions.

MeshTools_mtShortestPath_Points Mode_Random Selection_Vertex Map_v02.jpg

The Plane on the left has a vertex map, which is displayed in the viewport. An identical Plane is on the right, as a child of a mtShortestPath. The vertex weights are driving the start point positions.

Defines how many end points mtShortestPath will use.

MeshTools_mtShortestPath_Points Mode_Random Selection_End Number_v01.jpg

The Plane on the left has an End Number of 1 and the Plane on the right has an End Number of 12.

Change this value to use different randomly chosen end points.

You can also use vertex map or selection tags to define the end points.

Drag the tag from the Object Manager into the End Source link field.

MeshTools_mtShortestPath_Points Mode_Random Selection_End Point_Point Selection_v02.jpg

The Plane on the left has a polygon selection tag, which is displayed in the viewport. An identical Plane is on the right, as a child of a mtShortestPath, driving the end point positions.

MeshTools_mtShortestPath_Points Mode_Random Selection_End Point_Vertex Map_v02.jpg

The Plane on the left has a vertex map, which is displayed in the viewport. An identical Plane is on the right, as a child of a mtShortestPath. The vertex weights are driving the end point positions.

Fixed Selection only allows defined point selections, rather than randomly chosen points.

You can use vertex maps or selection tags to define the start and end points.

MeshTools_mtShortestPath_Points Mode_Fixed Selection_v01.jpg

Defined start and end points in Fixed Selection mode, with the shortest path generated between them.

Drag the vertex map, or selection tag, from the Object Manager into the Start Points, End Points link field.


Some paths from start to end points may intersect.

With Avoid enabled, intersecting paths will not be generated.

MeshTools_mtShortestPath_Avoid_Disabled_v01.jpg

Avoid disabled.

MeshTools_mtShortestPath_Avoid_Enabled_v01.jpg

Avoid enabled.


Use these settings to alter the length of the generated splines and animate growth effects.

An animated demonstration showing use of the Start and End sliders in the Spline Growth settings.

You can invert the spline growth so that it begins at the end points and grows towards the start points.

You can adjust the length of the paths by changing its start point.

This can be animated for growth effects.

You can also adjust the length of the spline by changing its end point.

This too can be animated for growth effects.

You can set the spline to automatically grow over time.

Enabling this will make the following four parameters available.

Video demonstrating activation of Custom Growth Rate and resulting animation, with and without the Variation option.

This is the rate at which a path will grow per frame.

It is a percentage of its overall length.

Therefore, at 1%, it will take 100 frames to grow to full length.

You can add variation to the Growth Rate setting to prevent paths from reaching their end points at the same time.

When Custom Growth Rate is enabled, this is available to offset the time that the growth begins.

The value represents the frame setting.

Change this value for a different variation pattern.


Enable this to display the start and end points in the viewport.

MeshTools_mtShortestPath_Display_v01.jpg

Display tab settings.

Use the color picker to choose a custom color for the start points.

Use the color picker to choose a custom color for the end points.

Adjusts the size of the displayed points.

This parameter enables the gradient coloring on the splines in the scene.


Choose from a Linear, Cubic, Akima, B-Spline or Bezier spline Type.

MeshTools_mtShortestPath_Spline_v01.jpg

Different options for spline Type setting, with the left set at Linear and the right at B-Spline.

You can choose how intermediate points are generated from the usual options.

In Natural and Uniform modes, use this field to set the number of intermediate points.

In Adaptive and Subdivided modes, use this angle threshold to limit the generation of intermediate points on curved edges.

In Subdivided mode, use this length threshold to limit the generation of intermediate points on straight edges.


You can use the Fields options to control where mtShortestPath operates.

Animation demonstrating use of the Spherical Field.


Copyright © 2026 INSYDIUM LTD. All rights reserved.