# Pawel's Editor Scripts and UI collection

**URL:** <https://forum.defold.com/t/pawels-editor-scripts-and-ui-collection/78319>\
**Category:** The Defoldmine\
**Created:** [October 2, 2024, 8:04am UTC](https://forum.defold.com/t/pawels-editor-scripts-and-ui-collection/78319 "2024-10-02T08:04:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [November 14, 2025, 2:46pm UTC](https://forum.defold.com/t/pawels-editor-scripts-and-ui-collection/78319/4 "2025-11-14T14:46:55Z")

</div>

I updated the library to 1.2:

## Added Model components creation UI from GLTF files.

This allows to create `Model` component files in batch from a selection of GLTF file - all will be having the same material (pretty common use case, where you want to add e.g. multiple buildings assets, or characters, etc)  
You can also access it from `Project` → `Create Models from GLTF` and define list of GLTF files on your own adding one by one or using `Add Many` that opens another popup to select multiple files at once (it automatically detects all GLTF files in the project).

![models_from_gltf](https://forum-defold-uploads.b-cdn.net/original/3X/0/9/0946bdf6c5186ec601e3f2ef73f5e8944276e31e.gif)

## Allowed Sound components to be created from multiple wav/ogg files in a convenient UI table.

Updated this editor script to also support creating multiple `Sound` component files at once - it will take only supported `wav` and `ogg` files from the selection and include them in a list. You can define for each gain, group, pan, etc.

![sound-components](https://forum-defold-uploads.b-cdn.net/original/3X/3/4/34b07f77ae643dac85c53f9a1504cd1dd0830221.gif)

## Allowed to “Add GUI Script” to multiple GUI Files

Also updated this script, so that now you can also select multiple `.gui` files and for each there will be created a `.gui_script` file and attached to it automatically.

## Refactored code and added helpers.

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/4/0/4098b3459d319753bdd90e9652ac41d9551853c7.png)

Editor scripts are now in folder related to managed resources/domains, like “gui”, “model” and “sound”.

As many stuff in all editor\_scripts will be repeating I separated `helpers` catalogue which includes:

- `ui_helper` - some common UI related stuff, creating most popular UI widgets, helping with designing them, so it can also include some more advanced combinations of available widgets for common use cases (lists, tables, etc)
- `file_helper` - operations on files, creating, reading, writing, deleting, checking for existence
- `string_helper` - string operations, especially a lot of them related to path creation, modification and checks
- `log_helper` - for printing info and errors in console
- `os_helper` - for platform specific stuff
- `table_helper` - for common table operations
- `ffmpeg_helper` - for FFMPEG dependency, for the sound playing, cutting, etc

This will be for sure evolving and being refactored over time, but it’s already useful (used in all scripts), so it might be helpful for the community to make other scripts and UIs easier.

## editor\_scripts.md

There is a bonus file included in the repo, it’s a dump of the documentation and some other editor scripts for LLMs context, so if you want to get AI help on making editor scripts or UIs it might be useful. I used Codex for some of the stuff there and it was really useful as long as I was defining small refactor tasks and explaining rules and dependencies. It’s really helpful with tedious work, e.g. just tell it to “make spacing between those properties LARGE in X file” and it adds correct properties everywhere for you!

## Moved License to a separate file.

So it nicely displays in Github. It’s MIT 😉

---

_[View the full topic](https://forum.defold.com/t/pawels-editor-scripts-and-ui-collection/78319)._
