TikTok quiz filter adaption of the 2024 Voter Guide prop quizzes as augmented reality effects, commonly referred to as "filters." Users tilt their heads to answer yes/no/unsure to 1-4 questions to determine their stance on the ballot propositions.
CalMatters published a demo on how to use the Prop. 33 quiz on Tiktok.
The quizzes are accessible under the 🪄 effects tab on the CalMatters TikTok profile page (only viewable on the TikTok mobile apps):
The web version of the quizzes are available at voter guide webpage for each respective proposition.
The quiz effect is developed as a template project using the ./effect-template project files. Any changes to the core functionality should be made to the template project.
The specific quiz effect for each proposition is generated by the ./generate_prop_quizzes.py script. This script duplicates the ./effect-template/ template directory and sets the number of questions with the corresponding values for each question's options. The generated project directories use blank questions and result card assets, which can be replaced manually or by running the ./set_assets.py script.
For example, if I needed to adjust the position of a specific Scene Object:
- Launch
./effect-template/effect.ehprojin Effect House - Adjust the relevant object's Position coordinates
- Save changes to project and close Effect House
- Delete any existing prop effect project directories, except for Proposition 34 (see note below)
- Run the
./generate_prop_quizzes.pyscript to regenerate the prop quizzes - Run the
./set_assets.pyscript to replace the blank assets the corresponding prop's assets - If publishing the effects or an update, then open each project and follow deploy instructions
This workflow allows for rapid development without manually editing each effect individually.
Note: Prop. 34 is an exception due to its longer intro card sequence. Changes to this effect should be made to the individual project to avoid needing to rebuild the intro sequence for every change to the base template.
- Python 3.11.7
- Custom scripts to generate the TikTok effects from the base template and set assets
- Effect House 4.6.2
- Effect House is TikTok's effect development platform
- Quiz effects were built and published using 4.6.2 and future versions may deprecate required features. (Download previous Effect House versions)
tiktok-effects-props-2024/
├── effect-template/ # Base template project for all effects
│ └── effect.ehproj # Effect House project file
├── assets/ # Asset files for all effects
│ ├── prop2/ # Assets for Proposition 2
│ ├── prop3/ # Assets for Proposition 3
│ └── ... # Assets for other propositions
├── prop2/ # Generated effect project for Prop 2
├── prop3/ # Generated effect project for Prop 3
├── prop34/ # Special case: Custom effect for Prop 34
├── icons/ # Effect icons for TikTok
├── generate_prop_quizzes.py # Script to generate prop quiz effects
├── set_assets.py # Script to update effect assets
├── set_icons.py # Script to update effect icons
├── get_assets.py # Script to retrieve effect assets
├── README.md # Project documentation
├── LICENSE # Project license
└── .gitignore # Git ignore rules
effect-template/: Contains the base Effect House project that serves as a template for all prop quiz effects. Any changes to core functionality should be made here.assets/: Stores all visual assets (images, cards, etc.) for each proposition. Each prop has its own subdirectory.propNUMBER/: Generated effect projects for each proposition. These are created bygenerate_prop_quizzes.pyand contain the actual Effect House projects.prop34/: Special case directory for Proposition 34, which has a custom intro sequence and requires manual modifications.icons/: Contains the TikTok effect icons for each proposition.- Scripts:
generate_prop_quizzes.py: Creates new effect projects from the templateset_assets.py: Updates assets in effect projectsset_icons.py: Updates effect iconsget_assets.py: Retrieves assets from effect projects
TikTok moderates each submitted effect submitted for content and performance. It takes anywhere from two hours to three days to go live following submission. Submissions are made in Effect House, so each effect needs to be opened individually for submission.
- Open the effect in Effect House
- Select the
Submitbutton - If the
What would you like to do?menu appears, then select the appropriate option - Enter the effect details
- Select
Next - Review the details and submit for approval
| Field | Value |
|---|---|
| Effect name (25 characters total) | Prop X by CalMatters |
| Default sound (optional) | None |
| Hint (optional) | Tilt head |
| Category (optional) | Interactive |
| Tags (optional, up to 5, each tag has 30-char max) | California ballot propositions, California general election, California politics, 2024 election, Voter education |
| Demo video (optional) | Not submitting demo |
Full credits for the CalMatters 2024 Voter Guide
CalMatters is a nonpartisan and nonprofit news organization bringing Californians stories that probe, explain and explore solutions to quality of life issues while holding our leaders accountable. Learn more about CalMatters
