JoffreyV
-
Posts
15 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Downloads
Gallery
Blogs
Files posted by JoffreyV
-
COLORFUL - script to edit match menu colors with background color of playlist videos
By JoffreyV in Playlist Theme Videos
Hi guys,
So I'm using the COLORFUL - Light theme and I love it. I have been adding lots of playlists with COLORFUL videos (I even made some myself). I also made hardware set png's similar to the platform png's that show before you select one and that slides to the right, into the video.
One thing that was bugging me though, was that for most playlists the color of the menu defaulted to green instead of matching my beautiful videos. I found out you can add some text with color codes for all of your playlists to the PlatformWheel1FiltersView.xml file in the /Themes/COLORFUL - Light/Views/ folder, but having to do that for dozens of playlists (even when using an online color picker) seemed like way too much work.
So, I turned to ChatGPT. Long story short, here's a PYTHON SCRIPT that you put in your /Videos/Playlists/ folder together with a template.txt file. Change the path in the script to your own path. Then, when you run the script from terminal, it should automatically detect the main color of your videos and add an entry for those playlists in a freshly generated output.txt file. You can copy the generated text from that file (each entrt starts with <DataTrigger Binding= and end with </DataTrigger> into your PlatformWheel1FiltersView.xml file (look for the place where your other playlists are summed up with RGB hex codes and paste it in the end there, right before the </Style.Triggers> part).
It might not work right away. Obviously, you need Python installed. Also, you might need to install some additional modules (especially OpenCV seems to be stubborn). In that case, just tell ChatGPT the error you get and it will tell you what to install via terminal and how to. I even ended up uploading my PlatformWheel1FiltersView.xml file just to find out that I needed to replace all the & signs in the xaml file to & just something you need to know. Should you use other special characters, change them to HTML-code!
I ran the script with this command: & "C:\Users\Joffr\AppData\Local\Programs\Python\Python311\python.exe" "F:\LaunchBox\Videos\Playlists\PlatformWheel1FiltersView.xml\Video Color Replacer.py" and it worked (I put my script into a subfolder).
ALSO, VERY IMPORTANT: MAKE A BACK-UP OF YOUR XAML FILE BEFORE CHANGING ANYTHING BECAUSE YOU MIGHT FUCK IT UP 😅
1 download
(0 reviews)0 comments
Updated
-
COLORFUL Theme Playlists "hardware set" image pack
By JoffreyV in Playlist Clear Logos
So I have been enjoying the COLORFUL (light) theme a lot and lately I have been adding tons of Playlist to my LB setup. I enjoy the official COLORFUL Playlist videos and have been adding some non-official ones from the LB forum as well (especially from here, here and here)
Because in my platforms menu I really enjoy the animation where the console slides to the right, into the playlist video, I decided to create png files for in the 'hardware set' folder of LB/BB (location: \LaunchBox\Themes\COLORFUL - Light\Media\Hardware Set). I used a batch file (send me a message if you want the script) to make a screenshot of the first frame of all the videos I had with FFMPEG and then used the website BgEraser to remove the background (in batches of 20 but totally free at excellent quality). For your ease, I also uploaded the files here but this method doesn't require a lot of time and your Playlist menu will look even better for it!
I hope I helped someone with this post 🙂
39 downloads