RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionseditor

Object To Spline Editor

Places copies of a selected object along a DecalRoad or MeshRoad spline with configurable spacing, offsets, and randomization.

Places copies of a selected object along a DecalRoad or MeshRoad spline with configurable spacing, offsets, and randomization.


Overview

An editor tool window that clones a scene object at evenly-spaced intervals along a road spline. Supports terrain alignment, random position/rotation offsets, Gaussian randomization, and undo/redo via the editor history system.


Public Functions

FunctionSignatureDescription
M.onEditorGui()Renders the tool window UI with parameter controls, preview, and create buttons
M.onEditorInitialized()Registers the window and adds it to the Window menu

Key Internal Functions

FunctionDescription
createSplineArray(guideId, gap, startOffset, endOffset, params)Generates position/rotation array along the spline
createObjects(objId, points, params, presetIds)Clones objects at computed positions, optionally in a SimGroup
work(guideId, objId, params, doCreate, keepPoints)Orchestrates preview or creation workflow
getRandom(scl, gauss)Returns centered random value with optional Gaussian distribution

Parameters

ParameterTypeDescription
gapfloatExtra spacing between objects
startOffset / endOffsetfloatDistance offset from spline start/end
useNormalboolAlign objects to terrain normal
useSimGroupboolPlace created objects in a new SimGroup
objAxisintAxis mode: 1=Auto, 2=X, 3=Y, 4=-X, 5=-Y
allowRandomboolEnable random spacing/position/rotation offsets
objLimitintSafety cap on spawned object count

Usage Example

-- 1. Select an object in the scene (e.g. a fence post)
-- 2. Select a DecalRoad or MeshRoad as the guide spline
-- 3. Set spacing and offsets
-- 4. Click "Preview" to see placement spheres
-- 5. Click "Create" to spawn the objects

Notes

  • Supports both DecalRoad and MeshRoad as guide splines.
  • Uses editor.history:commitAction for full undo/redo support.
  • Preview renders rainbow-colored debug spheres along the spline.
  • Object limit capped at 10,000 maximum regardless of user setting.

See Also

  • Editor AI Tests - Related reference
  • Editor AI Visualization - Related reference
  • Editor – Assembly Spline Tool - Related reference
  • World Editor Guide - Guide

Object Tool (Object Select Edit Mode)

The primary object manipulation edit mode - handles selection, transform gizmos, copy/paste, duplication, rectangle selection, and surface alignment.

Particle Editor

Visual editor for ParticleEmitterData and ParticleData datablocks with live preview.

On this page

OverviewPublic FunctionsKey Internal FunctionsParametersUsage ExampleNotesSee Also