Thursday, 3 February 2022

Sequence 2 Video

This handy little script will take any image sequence, exr, png, jpg etc, and combine it into a h264 mp4 video. 

There is a bat file in the repo below that needs to be added to a menu in windows. Open an explorer window and type "shell:sendto" in the address bar. Place the seq2Vid_CG.bat file in here and edit it so that it points to the locaiton of the downloaded Seq2Vid_v03.py

Once this has been done and FFMPEG has been installed (in C:/Dev/FFMPEG/bin....) you can now RMB on any image from a sequence and click "Send to" and then Seq2Vid_v03.py. The script will then run in a command line and create a video preview, which will be in the correct locaiton based off our previosuly created folder structure (having used the FolderGeneratoin_v001.py script)


Wednesday, 26 January 2022

Max File Automation

As part of my plan to overhaul the pipeline at work I've created a few scripts to manage file creation and saving. The idea is to standardize file naming, render outputs and render passes with the plan to automate later stages of the pipeline such as auto creating previews and nuke projects.

-------------------------------------------------------------------------------------
As these scripts are getting larger and larger I've decided to share my public Git repo rather than pasting the entire code block here.
https://github.com/eoin-personal/Public-Repo
-------------------------------------------------------------------------------------


What this main script will do: 

  • Search the target drive for available project folders
  • Create max file in the correct location based of the project selected in the UI.
  • Set render outputs to the correct location with the correct naming convention.
  • Set all render passes to the studio standard.
  • Set 3D Studio Max settings (fps, render size) based of selection of a 16:9 or 360 project.
  • Allow for scene or asset generation with some different settings based on this choice.
  • Allow for the Version and Take up tools to work, maintaining the file naming convention and updating the render outputs when necessary.

The UI in action:


There are 3 additional scripts that I've created for the pipeline overhaul.

The first is a folder generation script. This contains 2 parts, a bat file and a python file. The bat file can be placed in any location on any drive and once the path inside points to the python file it will create a folder structure in the root of the drive the bat file is currently stored on. The name of this project will fit our current format  <Date>_<JobCode>_<JobName> with the user providing the job code and name and the script auto formatting the current date into a usable format.

The second and third files are for versioning up the max files created using the Max Project Generator script. These will maintain the correct naming conventions and update with new render paths if the prompt is answered with yes.

VersionUp_v001.ms

TakeUp_v001.ms