LK_Render
Moderators: Víctor Paredes, Belgarath, slowtiger
- synthsin75
- Posts: 9973
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Start background commandline render from Lua script?
If you're not using the hardware, it looks like it'd be more flexible/reliable to use AutoHotkey, if you're on Windows.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Start background commandline render from Lua script?
Quite probably true. I don't use AHK, but they should play together quite nicely too.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.
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
Moho 14.1 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam
Sam
Re: Start background commandline render from Lua script?
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.
(Edit fixed URL)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.
Re: Start background commandline render from Lua script?
I've updated LK_Render for Moho 14. https://mohoscripts.com/script/LK_Render
(Thanks to SimplSam for the help!)
(Thanks to SimplSam for the help!)