LK_Render

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

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
synthsin75
Posts: 9973
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Start background commandline render from Lua script?

Post 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.
User avatar
SimplSam
Posts: 1048
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Start background commandline render from Lua script?

Post by SimplSam »

synthsin75 wrote: Wed Sep 22, 2021 5:16 pm 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.
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: Start background commandline render from Lua script?

Post by Lukas »

Stan wrote: Fri Sep 17, 2021 3:59 pmYou'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)
User avatar
Lukas
Posts: 1297
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: Start background commandline render from Lua script?

Post by Lukas »

I've updated LK_Render for Moho 14. https://mohoscripts.com/script/LK_Render

(Thanks to SimplSam for the help!)
Post Reply