
This powerful GIANTS Editor script provides a wide range of useful tools for working with splines. From terrain editing and object or fence placement to exporting splines as .OBJ files for Blender and generating road meshes – all combined in one single tool.
Feature Overview:
1) — Base Tools —
1.1) Set Spline on Terrain
Allows spline points to be projected onto the terrain surface, with an optional adjustable offset.
1.2) Set Offset
Moves a spline vertically and horizontally using customizable offset values.
1.3) Set Terrain Height
Adjusts the terrain height to match the spline height, with optional parameters for precise control.
1.4) Paint Terrain
Enables terrain painting along a spline using a clear and structured layer selection.
2) — Place Objects —
Allows objects to be placed along a spline with a variety of configurable parameters for flexible placement.
3) — Place Fence —
Creating fences has never been easier.
With a structured list of base game fences including preview images, complete fence setups can be created quickly and efficiently.
4) — Export as .OBJ —
To streamline the workflow between GIANTS Editor and Blender, the Spline Toolkit allows splines to be exported as .OBJ files using two different methods and additional useful parameters.
5) — Generate Road Mesh —
A lightweight yet extremely useful tool for infrastructure creation in Blender.
Road meshes can be generated directly from splines and further refined in Blender. Matching traffic splines are automatically generated as well.
Installation:
1.) Navigate to your GIANTS Editor installation directory. Default path: “C:\Program Files\GIANTS Software\GIANTS_Editor_10.X.X\”
2.) Copy the file “SplineToolkit.lua” and the folder “fenceImages” from the prefab into the GIANTS Editor script folder.
3.) The script will then be available in the GIANTS Editor via the menu bar under “Scripts”.
Changelog: +
Hotfix Update 2.0.1:
– [Base Tools] = Clear Foliage now correctly clears all foliage layers.
– [Base Tools] = Set Terrain Height: Fixed spike/gap artifacts.
– [Base Tools] = Set Terrain Height: Configurable pixel resolution via SplineToolkit.TERRAIN_METER_PER_PIXEL_LOAD_FROM_MAP and SplineToolkit.TERRAIN_METER_PER_PIXEL_CUSTOM.
Update 2.0:
– [General] = A real-time preview has been integrated directly into the editor for nearly all tools.
– [General] = Various minor bug fixes and general code optimizations applied.
– [Base Tools] = SetTerrainHeight now reads the map’s pixel grid to ensure improved height adjustment when using a non-default map configuration.
– [Place Objects] = Area mode completely rebuilt; the previous width algorithm has been removed and replaced with a significantly more precise approach.
– [Place Objects] = Simplified UI: Two modes (Straight / Area) via radio buttons; Sequential vs. Random placement as a dedicated selection option.
– [Place Fence] = Fences can now be imported directly, including automatic transfer of all animation data into the configuration file.
– [Place Fence] = Gates can be positioned along the spline via a slider and are automatically registered as AnimatedObjects, allowing them to open normally via a trigger in-game.
– [Place Fence] = Added per-gate status indicator and a built-in XML viewer/editor with “Validate Fences” function for full verification of all fence and gate entries.
– [Place Fence] = Fence groups are now identified via UserAttributes instead of fixed names, making the structure more robust.
– [Gen. Street] = Fixed an issue where UV wrapping exceeded the maximum possible tile count.
– [Gen. Street] = Road mesh generation reworked and optimized.
– [Gen. Street] = Real-time preview of the generated road integrated directly into the editor.
Update 1.1.1:
– [Base Tools] = Added a Clear Foliage button and removed the option from the foliage layer list.
– [Base Tools] = Fixed an issue with Clear Foliage where an incorrect invisible layer was applied.
– [Place Object] = Added Place Type “… with Width”. Allows objects to be placed randomly within a defined width.
– [Place Object] = Added Set Height Type “… + Follow Axis”. Allows connected objects to be placed almost seamlessly, even on uneven terrain.
– [Gen. Street] = Added four additional textures to the list.
– [Gen. Street] = Added a confirmation dialog when overwriting an existing road group.
Update 1.1:
– [Base Tools] = UI slightly improved and new functions “Set Foliage” and “Resample Spline” added.
– [Gen. Street] = Added texture options.
– [Place Fence] = ‘Spline Type’ selection removed – now automatically read from the spline.
Hotfix 1.0.1:
– Fix: [Place Fence] – Fences are now placed at terrain level instead of spline level.
– Fix: [Place Object] – Side Offset now works correctly.
Credits:
Aslan