Skip to main content
Version: 4.6.0

Photo Slideshow

Take a walk down memory lane with the Photo Slideshow template! This template allows TikTok users to upload images from their personal galleries (the User Media Texture), crafting a seamless transition through cherished photos!

photo slideshow demo

Open the Template

To use this template in your Effect House project:

  1. Go to Templates
  2. Click the Screen tag
  3. Select the Photo Slideshow template
open template

Hierarchy

In the Hierarchy panel, there are four main render groups:

  • Tip: To customize Photo Slideshow contains helpful hints to customize the photo slideshow
  • Tip: Transition codes (For Subgraph) outlines the different transition codes which you will use
  • User Media Pass renders and loops through the children images
  • Final Render Pass renders the final result and the initial upload screen
hierarchy

User Media

In the Hierarchy panel, the Holders screen transform object holds three user media.

user media objects

To add an additional user media:

  1. Click + Add object
  2. Go to 2D and click Screen Image
  3. Move Screen Image to the User Media Pass render group as a child of the Holders object
screen image object
  1. Rename the Screen Image object by right-clicking it and entering a new name, such as New User Media
  2. Go to the Assets panel and click the Add asset button [+]
add asset
  1. Go to Texture and click User Media Texture. The new texture appears in the User Media Textures folder
user media texture
  1. Select the newly added Screen Image object in the Hierarchy panel
  2. Go to the Inspector panel and locate the Image component
  3. Click the Texture field
texture field
  1. Select the newly added User Media Texture and click OK
new user media texture

The final step is to configure the "backend" so that the effect knows how many user media to account for!

In the Visual Scripting panel, double-click the Photo Slideshow Controller subgraph. (A large graph appears but don't be alarmed!) 2. Navigate to the Check How Many User Media is Uploaded subgraph at the very left of the visual scripting logic

check how many user media is uploaded
  1. Double-click the subgraph
  2. Select a set of user media logic nodes: User Media Info, If, Do N, Upload Count, Add, and another Upload Count
tip

Drag your cursor across the six nodes horizontally, creating a rectangle over them

drag cursor to select nodes
  1. Duplicate the selected node by pressing the Control key + D
  2. Position the series of duplicated nodes under the original set of nodes
drag and position nodes
  1. From the first (left-most) Sequence node, connect Position 4: Exec to the duplicated If node
connect sequence
  1. From the second (right-most) Sequence node, connect Position 4: Exec to the duplicated Do N node
connect to duplicated node
  1. Connect Triggere: Exec of the duplicated UploadCount node to the Output node
connect output node
  1. Click the Add button [+] in the Make Array node
click add array item
  1. Connect Image Resolution from the duplicated User Media Info node to Item 3 of the Make Array node
connect image resolution
  1. In the duplicated User Media Info node, click the User Media Texture field
  2. Select the newly created User Media Texture and click OK
select new user media texture

Now the new User Media Texture can be displayed in the slideshow!

Customize the Slideshow

Start by deselecting the UI [DISABLE TO TEST] screen transform object in the Hierarchy panel.

disable to test
tip

The best way to test out your effect is to preview it directly in TikTok. Generate a QR code from Effect House, scan the QR code from your phone, and upload your own images!

The Background Overlay, Text, and Upload Prompt objects disappear from the preview.

disable ui demo

Transitions

At the end of each image, a custom transition occurs, seamlessly making way to the next image. The transition type can be defined in Photo Slideshow Controller subgraph within the Visual Scripting panel.

photo slideshow controller

The Add Transition (A number from 0 to 7) property has seven fields, with 0 representing the first transition, 1 representing the second transition, and so on. The fields appear with numerical values between 0.00 to 7.00. So what do these values mean?

Well let's go back to the Hierarchy panel and find the Tip: Transition code (For Subgraph) render group.

slideshow transition codes

This render group outlines the values and their assigned transition type. For example, the transition between the first image and second image is Pull In Transition (value 1). Similarly, the transition between the second and third images is Left Directional Slide Transition (value 2). You can adjust these values to define the transition behavior you'd like!

If you want to reduce the number of transition types, you can go ahead and remove them from the Add Transition property by clicking the X button.

delete transition

Visual Scripting

The following visual scripting properties in the Photo Slideshow Controller subgraph can be adjusted to customize the slideshow behavior:

visual scripting
  • Enable Camera Move On Photos creates a slight movement effect on your images. Deselecting this property will make all your images static.
  • Camera Move Amplitude controls how much the camera moves on your images (when Enable Camera Move On Photos is enabled). A larger value causes bigger camera movement, and vice versa.
  • Camera Move Speed controls how fast the camera moves on your images (when Enable Camera Move On Photos is enabled). A large value causes the camera to move faster, and vice versa.
  • Camera Zoom Amount (0 - 1) controls the zoom ratio of the camera, with 0 offering no zoom, and 1 offering the most zoom
  • Wait Time On Each Image determines how long an image is displayed, in seconds, before transitioning to the next image
  • Add Transition (A number from 0 to 7) represents the array of image inputs and their respective transition types

Video Tutorial

To watch a video tutorial on how to use this template, go here.