LK_EmbedScript - Quickly embed, edit and reload embedded layerscripts

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Lukas
Posts: 1297
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

LK_EmbedScript - Quickly embed, edit and reload embedded layerscripts

Post by Lukas »

Link: Tool that allows you to quickly embed, reload(!) and edit embedded layerscripts that are saved in the custom content folder. It will try to use Sublime Text as an editor for the lua files, but you could adjust that to any other editor.

(You can delete all layer scripts in the zip if you don't need them, but keep the folder and LK_Dummy.lua)

Hope it's useful to anyone!

Image
Last edited by Lukas on Thu May 25, 2023 10:35 am, edited 2 times in total.
User avatar
SimplSam
Posts: 1048
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: LK_EmbedScript - Quickly embed, edit and reload embedded layerscripts

Post by SimplSam »

Great idea and nice UI.

I have not used it in anger yet, but I did get an error when I tried the: "Find all embedded scripts" feature: FO_Utilities.lua:407: attempt to index global 'LK_Powertool'
Moho 14.1 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.1 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
User avatar
Lukas
Posts: 1297
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: LK_EmbedScript - Quickly embed, edit and reload embedded layerscripts

Post by Lukas »

SimplSam wrote: Thu May 06, 2021 12:59 pm Great idea and nice UI.

I have not used it in anger yet, but I did get an error when I tried the: "Find all embedded scripts" feature: FO_Utilities.lua:407: attempt to index global 'LK_Powertool'
Argh, thanks, I'll fix that and reupload.

Edit: Should be fixed now!
User avatar
lucasfranca
Posts: 128
Joined: Sat Oct 07, 2017 11:47 pm

Re: LK_EmbedScript - Quickly embed, edit and reload embedded layerscripts

Post by lucasfranca »

Lukas wrote: Thu May 06, 2021 3:10 pm
SimplSam wrote: Thu May 06, 2021 12:59 pm Great idea and nice UI.

I have not used it in anger yet, but I did get an error when I tried the: "Find all embedded scripts" feature: FO_Utilities.lua:407: attempt to index global 'LK_Powertool'
Argh, thanks, I'll fix that and reupload.

Edit: Should be fixed now!
And this list of your scripts? Can you make it available?
An old guy [since 1983] who was raised in front of the TV.
Passionate about animation, after getting old, he decides to make it his hobby.

I share tutorials, reviews, tips and tricks from this vast world of animation on my channel.

https://youtube.com/animai2D
User avatar
synthsin75
Posts: 9973
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: LK_EmbedScript - Quickly embed, edit and reload embedded layerscripts

Post by synthsin75 »

Somehow I missed this one. Sounds nice. I've been using a script to reload all layerscripts for years. Pain in the ass to unenbed/reembed manually.
Post Reply