We don’t do anything special to prevent using binaries from dependencies, it’s just not possible currently because dependent library is a zip file, and to execute binary we need to extract it first from the archive.
Ah, good point.
Well, so if we’d add a method to write a resource out to disc, one could then execute it.
“add shortcuts (hotkeys) for editor scripts”
Would be useful for scripts that work with nodes transformation (ordering, aligns, transform reset etc).
A little collection of editor scripts for isometric scene:
Grab it here:
This is what I would like hotkeys for.
We need a right click context menu in the viewport.
as variant, this dramatically reduces a day cursor movement
Also in the text editor with the items from the “Edit” menu.
The one I would love the most to get personally is still
editor.get(id, "parent") #2815. It would make quite a lot more stuff possible, a “big bang for the buck” .
It would be useful to have a builtin Editor Scripts way to create folders so we don’t have to use actions / other scripts.
I’ve come upon the issue where JDK locks the a file that was opened and closed with Lua io.open() in Editor Scripts which means I can’t delete the touched file until closing the editor or using a file unlocker tool. If I try to delete the file from the editor it shows a dialog but does nothing, if I try to delete it from the OS it warns that JDK is using it.
Edited 22-07-2022: take a look at the upgraded version of the script → Defold Shaders (2021 shader practice / learning edition) - #4 by Pkeod
*Only for Windows. If someone is going to use it, I will add paths to “malioc” for macOS/Linux.
Hi, I’m trying to do the same thing (3 years after ), creating an empty folder using an editor script function. Did you ever manage to solve it by any chance and have some knowledge to share?