Page 2 of 2

Re: Start background commandline render from Lua script?

Posted: Wed Sep 22, 2021 9:16 am
by synthsin75
If you're not using the hardware, it looks like it'd be more flexible/reliable to use AutoHotkey, if you're on Windows.

Re: Start background commandline render from Lua script?

Posted: Wed Sep 22, 2021 9:49 am
by SimplSam
synthsin75 wrote: Wed Sep 22, 2021 9:16 am If you're not using the hardware, it looks like it'd be more flexible/reliable to use AutoHotkey, if you're on Windows.
Quite probably true. I don't use AHK, but they should play together quite nicely too.

Re: Start background commandline render from Lua script?

Posted: Fri Oct 01, 2021 1:24 pm
by Lukas
Stan wrote: Fri Sep 17, 2021 7:59 amYou'll be surprised how many people find it useful! :D
Here it is! I removed the option to sent it to the render queue, because that's all too studio specific but if you're using one yourself it should be easy enough to add your own back in. The tool is useful if you need to render (and overwrite) image sequences and don't want to worry about setting the output correctly each time.
Instructions wrote:Please save your file with correct formatting: *_v001_X.moho

For example:
  • Whatever_v001_L.moho
  • EP01_001_Intro_v003_P.moho
  • Crazy-Guy_v006_M.moho

This makes it easy to keep track of versions and see who the last animator of a shot was.

Everything before '_v001_X' will be considered the 'Shotname' of the file.
This means rendering file Hello_v002_X.moho will always overwrite Hello_v001_X.moho

A 'Renders' directory will be created in the same location as the highest 'Shots' directory in the file's path. If no 'Shots' directory is found, the 'Renders' directory is created in the same location as the moho file.

Inside the 'Renders' directory another directory will be created with the 'Shotname'.

If the file contains Layercomps, they will be rendered in subfolders of the sequence folder. The regular sequence will also still be rendered, but without the layers specified in the layercomps. This sequence could be considered the background in most cases.
(Edit fixed URL)

Re: Start background commandline render from Lua script?

Posted: Fri Sep 15, 2023 4:47 am
by Lukas
I've updated LK_Render for Moho 14. https://mohoscripts.com/script/LK_Render

(Thanks to SimplSam for the help!)