Skip to content
On this page

Pipeline Usage

Work in Progress

15 Oct. 2023 - The content of this page is currently being edited/updated.

Launching Blender

To launch Blender use the following command

bash
cd /data/my_project/svn/tools
./run_blender.py

If a desktop icon is preferred to launch blender

bash
cd /data/my_project/svn/tools
./install_desktop_file.sh

Sync your Edit with Kitsu Server

Most productions begin with a previz or storyboard step, showing the overall direction and plan for the production. By inputting this as video strip(s) into a VSE file we can automatically create the corresponding shots on the Kitsu Server directly from the VSE.

  1. If not already ensure your project settings are setup Blender Kitsu Add-On Preferences
  2. At the directory /data/my_project/shared/edit create a new "Video Editing" File.
  3. Populate your new edit file with your previz video strips
  4. With your first strip selected, in the Blender Kitsu side panel of the VSE select "Create Metastrip Active Shot” to create a new metastrip.
  5. Next select “Init Active Shot”, and enter the Shot and Sequence names you would like to submit to Kitsu.
  6. Finally select the “Submit New Shot Button” to submit this new Shot to the Kitsu Server.

Repeat steps 4-6 for each shot in the sequence. Multiple metastrips can be made out of a single previz strip if required, adjust the shot’s timing by simply trimming the metastrip in the timeline. Below is an example of a previz sequence with metastrips.

Creating your first Asset

The next step is to create an asset and store that information into the Kitsu Server.

  1. Launch Blender via [Launching Software] Guide
  2. Under Edit>Preferences>Add-Ons ensure Asset Pipeline is enabled
  3. Follow the asset pipeline guide to create a new asset (optional)
  4. Save the above asset within the directory /data/my_project/svn/pro/lib/char
  5. Create a matching entry in Kitsu for the above asset via the Create Assets guide
  6. Follow the casting guide in the breakdown section to assign assets to shots.

Building your First Shot

Inside your production’s directory the Shot Builder configuration files need to be created using the examples included in the Add-On directory. See the Shot Builder Config Directory Layout for details. The only configuration file that requires production specific edits is assets.py. This configuration file links the Kitsu Asset entries to their corresponding files in the production directory.

  1. Copy Configuration Files from examples to /data/my_project/svn/pro/shot-builder/
  2. Update assets.py file with each asset you have in your lib folder see the Shot Builder API
  3. Ensure your camera rig is present at the path /data/my_project/svn/pro/lib/cam/camera_rig.blend
  4. Open a new Blender File, select File>New>Shot File
  5. Select the desired Sequence/Shot from Kitsu and select OK to start Building
  6. New file will be saved to `/data/my_project/svn/pro/shots/{sequence}/{shot}/{shot}.blend

Playblast your First Shot

Once your first shot is animated you are ready to render a playblast of this shot, which will be later imported into your edit .blend file.

  1. Launch Blender via [Launching Software] Guide and Open a Shot
  2. In the Kitsu Sidepanel, under context, use the refresh icon to reload your file's context if it is not set already.
  3. In the Kitsu Sidepanel under Playblast tools you are now ready to create a new playblast version, select Create Playblast which will render a preview of your shot and add it as a comment on your Kitsu Task for this shot
    1. Status: select the status to set your Kitsu Task to
    2. Comment: add any notes you would like to include in your comment
    3. Use Current Viewport Shading: Enable this to render will the settings from your current viewport
    4. Thumbnail Frame: Which frame in your current file should be the thumbnail for your preview file

Loading First Playblast into the Edit

For each new task type, Anim/Layout etc needs to be added manually, then it can update the shot afterwards

Returning to your edit .blend file, we can now load the playblast from the animation file into the edit.

  1. Open your edit .blend file inside the directory /data/my_project/shared/edit
  2. From the Sequencer Header select Add>Movie
  3. Navigate to the directory of the playblast for your shot's .blend file /data/my_project/shared/shot_previews/{sequence_name}/{shot_name}/{file_name} and select the .mp4 file
  4. Place the new shot at the same timing as the corresponding metastrip

Adjusting a Shot's Frame Range

During production in some cases the frame range of a shot will change, either adjusting a shot's length or adjusting it's position in the edit. Once adjusted, we can update the shot .blend file's frame range so new playblasts will match this updated frame range. Once a new playblast is available the shot can automatically be updated in the VSE via the Blender Kitsu Add-On

  1. Open your edit .blend file inside the directory `/data/my_project/shared/edit
  2. Select a shot and it's metastrip, adjust the timing of both strips so they remain in sync.
  3. Select your metastrip, in the Kitsu Sidebar of the VSE Under Push select Metadata 1 Shot to push your shot's new frame range to the Kitsu Server
  4. Open your shot .blend file inside the directory `/data/my_project/svn/pro/shots/{sequence_name}/{shot_name}/
  5. Inside the Kitsu Sidebar, under Playblast tools, if your frame range on Kitsu has changed you will see a red Pull Frame Range button. Select it to update the file's Frame Range
  6. Adjust the shot's animation to accommodate the new frame range, then under Playblast use the + button to create a new version, then select Create Playblast to render a new playblast
  7. Open your edit .blend file, and select the movie strip for the shot you would like to update.
  8. In the Kitsu Sidebar under General Tools select, ^ to load the next playblast from that shot automatically

Render Shot with Flamenco

Once your shots are all ready to go, you can now render a final EXR from each of your shot files.

  1. Open a shot file
  2. In the properties panel navigate to Output, and set your file format to OpenEXR with Previews Enabled
  3. In the properties panel navigate under Flamenco
    1. Select Fetch Job Types
    2. From the Dropdown select Simple Blender Render
    3. Set Render Output Directory to /data/my_project/render/
    4. Set Add Path Components to 3
    5. Finally Select Submit to Flamenco

Review and Approve Renders

Once your shot(s) have been rendered by Flamenco, you are ready to review your renders using the Render Review Add-On. This Add-On allows you to review different versions of your Render, assuming you rendered with Flamenco for multiple versions, and select the version you would like to use as your approved version.

  1. Ensure Blender Kitsu Add-On is enabled and Logged In
  2. From File>New>Render Review
  3. From the dialogue box select a Sequence Name you would like to Review
  4. Select the video strip for the render you are reviewing
  5. Select Push to Edit & Approve Render
    • Push to Edit will take the mp4 of your flamenco render and add it to the shot_previews directory
    • Approve Render will copy the Image Sequence of your flamenco render to the shot_frames directory

Import Approved Renders into VSE

Renders approved by the render review Add-On can be automatically imported into your edit using the same function used to update the playblast of shots in the edit.

  1. Open your Edit .blend file
  2. Select the video strip representing the shot that has an approved render. In the Kitsu Sidebar under General Tools select, ^ to load the next playblast from that shot automatically, which is an mp4 preview of your final render
  3. Select the video strips representing all the shots you have approved renders for. Use Shot as Image Sequence to import the final image sequences for each shot as EXR or JPG and load it to a new channel in the VSE

Final Render

Once the approved image sequences have been loaded into the main edit you are ready to create a final render of your film.

  1. Open your Edit .blend file
  2. Render Video as PNG Sequence
    1. Under Properties>Output Set the output directory to /data/my_production/shared/edit/delivery/frames/
    2. Set the File Format to PNG
    3. Select Render>Render Animation
  3. Render Audio
    1. Select Render>Render Audio
    2. In the Side Panel select Container .wav
    3. Set the output directory to /data/my_production/shared/edit/delivery/audio/
  4. Run Deliver script
    1. Copy the delivery.py from /data/blender-studio-pipeline/film-delivery/ to the directory /my_production/shared/edit/delivery/
    2. Enter delivery directory `cd /my_production/shared/edit/delivery/
    3. Encode audio with ./deliver.py --encode_audio audio/{name_of_audio}.wav
    4. Encode video with .deliver.py --encode_video frames/
    5. Finally .delivery.py --mux
  5. Final Render will be found in the mux directory