Bulk Rename
Editor tool for batch-renaming scene objects. Supports pattern-based renaming with counters and old-name substitution, collision detection, and preview before applying.
Editor tool for batch-renaming scene objects. Supports pattern-based renaming with counters and old-name substitution, collision detection, and preview before applying.
Public Functions
| Function | Description |
|---|---|
M.onEditorGui() | Renders the bulk rename window UI |
M.onEditorInitialized() | Registers window and menu item |
Key Features
- Pattern Syntax -
%o= original name,%n= counter,%4n= zero-padded counter - Field Selection - Rename either
name(unique) orinternalNamefields - Search Filter - Filter objects by name/internal name text match
- Collision Detection - Warns about naming conflicts before applying
- Preview - Shows before/after names for up to 10 objects
- Undo Support - Uses
objectHistoryActions.changeObjectFieldMultipleValuesWithUndo
Pattern Examples
| Pattern | Original | Counter | Result |
|---|---|---|---|
%o | Tree | 1 | Tree |
%o_%n | Tree | 3 | Tree_3 |
Prop_%4n | Tree | 7 | Prop_0007 |
MyObj_%n | Rock | 12 | MyObj_12 |
Usage Example
-- Open the bulk rename tool
editor.showWindow("bulkRename")Functions
onEditorInitialized()
Registers the bulk rename window and menu item.
onEditorGui()
Renders the bulk rename window UI with search, pattern, preview, and rename controls.
onEditorActivated()
Callback for editor activated event (empty).
onExtensionLoaded()
Callback for extension loaded event (empty).
onEditorObjectSelectionChanged()
Updates the rename preview when the editor selection changes.
Additional Exports
M.onEditorActivatedM.onEditorObjectSelectionChangedM.onExtensionLoaded
See Also
- globals - Scene tree and object management
Building Editor
Experimental procedural building/city generation editor. Uses a modular architecture with separate world, UI, decal, region, and utility sub-modules. Supports hot-reload during development.
Camera Bookmarks
Simple editor tool for saving and restoring camera positions as named bookmarks. Supports clipboard copy/paste of camera transforms.