Want to add lyrics and color beat blocks to your Disco Diffusion project like I did in my video? Here is my code:
Added 2022-06-02 17:18:04 +0000 UTCThe keyframes are set up similar to the xyz translation and rotation.
#colorblock keyframe(shape, scale, fill_color, xOffset, yOffset)
After setting up the keyframes with this notation, you can reuse the "parse_key_frames" function that was already built in to the notebook. (circled in image below)



Pass in the frame_num to "checkBonusKeyframes" inside the do_run() function at the position I have highlighted. This will edit the prevFrame before it continues. As always, I'm happy to help if you have any questions.
EDIT: Here is a pastebin to easily copy and paste the code: https://pastebin.com/pPWmtRnQ
Comments
Hi, when you text for example: lyric_texts += “3004: (yet it still gets darker…), what does 3004 mean? Thanks
Obed Vernon
2023-04-19 15:48:48 +0000 UTCI just checked the link and it still is opening for me
Mark Robbins
2023-01-11 21:06:27 +0000 UTClink does not open ?
Gökhan Çalbay
2023-01-11 19:55:55 +0000 UTC