Editor Scripts 🔥: Alpha Release

I have finally had some time to play around with this! My experience is that though even a lot of things are missing you can still do a quite a bit with some help from python.

The things that would enable me to do a lot more right now is (in order):

I would like to be able to get a “name id” of a selected embedded game object #2790. This would enable me to do a lot of things, because this would mean I could find the item in a text file and then do whatever I want with it.

Ability to query both open file and selection #2784. I was able to make a script that adds all selected images to an existing atlas that was also selected. It would be a nicer if I could add the images to the currently open atlas.

A way to get user input #2786, this would make it so that I can create files with names decided by the user. One of the scripts I made creates a “monarch scene” (collection, gui_script, and gui) but it requires that you have already made a gui scene, it would be nicer if I could popup a dialog asking for the name and then create all 3 items.

A not as important one is that directories should also be resources 2787. This would enable me to right click on a folder and “batch” do things with it instead of having to open the folder and then selected everything in it.


I was able to do a lot of things with the help of python and DefTree: A python module for editing Defold files. I would totally recommend it when doing things like this (until we get something like it for lua), it was super quick to get a script that did fairly complex things up and running. Small disclaimer I made deftree.

If someone wants to see the different scripts they are in this repository

12 Likes