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
Assembly Spline – DistributionAssembly Spline – ImportAssembly Spline MoleculeAssembly Spline PopulateAssembly Spline 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 ExtensionseditorassemblySpline

Assembly Spline Manager

Central manager for the Assembly Spline tool. Handles spline CRUD operations, undo/redo, presets, serialization, splitting/joining, linking with the Master Spline tool, and dirty-state updates.

Central manager for the Assembly Spline tool. Handles spline CRUD operations, undo/redo, presets, serialization, splitting/joining, linking with the Master Spline tool, and dirty-state updates.


Public Functions

FunctionDescription
M.getToolPrefixStr()Returns the tool prefix string "Assembly Spline"
M.getEditModeKey()Returns the edit mode key for this tool
M.getAssemblySplines()Returns the full assembly splines table
M.getSplineMap()Returns the id→index lookup map
M.setAssemblySplines(splines)Set the full splines table (triggers folder creation)
M.setAssemblySpline(spline, idx)Set a single spline at index
M.getDefaultSliderParams()Returns default slider parameter values
M.setPreset(spline, presetStr)Apply a named preset to a spline
M.addNewAssemblySpline()Create a new assembly spline with default wooden fence preset
M.removeAssemblySpline(idx)Remove spline at index (deletes meshes and folder)
M.removeLinkedAssemblySpline(splineId)Remove a linked spline by ID
M.removeAllAssemblySplines(isIncludeDisabled)Remove all (or only enabled/unlinked) splines
M.splitAssemblySpline(selectedSplineIdx, selectedNodeIdx)Split a spline into two at the given node
M.joinAssemblySplines(splineIdx1, nodeIdx1, splineIdx2, nodeIdx2)Join two splines into one
M.deepCopyAssemblySpline(spline)Deep copy a single spline
M.deepCopyAssemblySplineState()Deep copy all splines (for undo/redo snapshots)
M.copyAssemblySplineProfile(spline)Copy spline profile (parameters only, no geometry)
M.pasteAssemblySplineProfile(spline, profile)Paste a profile onto a spline
M.singleSplineEditUndo(data)Undo callback for single-spline edits
M.singleSplineEditRedo(data)Redo callback for single-spline edits
M.transSplineEditUndo(data)Undo callback for trans-spline edits
M.transSplineEditRedo(data)Redo callback for trans-spline edits
M.objectSelectUndo(data)Undo callback for object selection
M.objectSelectRedo(data)Redo callback for object selection
M.updateDirtyAssemblySplines()Recompute geometry and repopulate dirty splines
M.convertPathsToAssemblySplines(paths)Convert bitmap-traced paths to assembly splines
M.serializeAssemblySpline(spline)Serialize a spline to a buffer-encoded string
M.deserializeAssemblySpline(data, isCreateObject)Deserialize a spline from encoded data
M.getCurrentAssemblySplineList()Get list of enabled splines {name, id, type}
M.isLinked(id)Check if a spline is linked to a master spline
M.setLink(id, groupId, isLink)Set/unset linking for a spline
M.updateLinkedAssemblySpline(id, points, widths, nmls, isLoop, isConformToTerrain)Update linked spline geometry from master
M.unlinkAll()Unlink all assembly splines

Built-in Presets

Preset KeyNameKit Path
wooden_fenceWooden Fenceassets/meshes/props/assembly_kit/ak_wood_fence_001/
telegraph_poleTelegraph Poleassets/meshes/props/assembly_kit/ak_wood_pole_old_001/
metal_crash_barrierMetal Crash Barrierassets/meshes/props/assembly_kit/ak_guardrail_001/

Spline Data Structure

local spline = {
  name = "Assembly Spline 1",
  id = "<uuid>",
  isLoop = false,
  sceneTreeFolderId = <int>,
  isDirty = false,
  isEnabled = true,
  isLink = false,
  linkId = nil,
  nodes = {},             -- vec3 control points
  widths = {},            -- per-node widths
  nmls = {},              -- per-node normals
  spacing = 0.0,          -- extra spacing between molecules
  verticalOffset = 0.0,
  normalMode = 2,         -- 0=local, 1=global, 2=terrain
  sag = 0.0,              -- bridge sag factor
  preRot = 0,             -- pre-rotation index (0/1/2/3 = 0°/90°/180°/270°)
  kitFolderPath = "...",
  meshKit = {},
  moleculeDescription = {},
}

Functions

setPreset(spline, presetStr)

Sets the preset.

  • spline (object)
  • presetStr (any)

Returns: -- No spline or preset string provided.

singleSplineEditUndo(assemblySplineData)

Handles single spline edit undo.

  • assemblySplineData (any)

singleSplineEditRedo(assemblySplineData)

Handles single spline edit redo.

  • assemblySplineData (any)

transSplineEditUndo(data)

Handles trans spline edit undo.

  • data (table)

transSplineEditRedo(data)

Handles trans spline edit redo.

  • data (table)

objectSelectUndo(data)

Handles object select undo.

  • data (table)

objectSelectRedo(data)

Handles object select redo.

  • data (table)

Returns: self

unlinkAll()

Handles unlink all.

Returns: self


See Also

  • assemblySpline/molecule - Molecule building and attachment logic
  • assemblySpline/populate - Mesh placement along splines

Assembly Spline Populate

Handles the placement of molecule instances (rigid + bridge meshes) along an assembly spline. Manages mesh pooling, spline sampling, rigid placement via attachment sequences, and bridge scaling/alignm

Crawl Editor - Boundaries

Sub-module of the Crawl Data Editor handling boundary polygon creation and editing. Provides vertex manipulation with gizmo support, terrain snapping, and undo/redo history.

On this page

Public FunctionsBuilt-in PresetsSpline Data StructureFunctionssetPreset(spline, presetStr)singleSplineEditUndo(assemblySplineData)singleSplineEditRedo(assemblySplineData)transSplineEditUndo(data)transSplineEditRedo(data)objectSelectUndo(data)objectSelectRedo(data)unlinkAll()See Also