u/marcihuppi

Extract Alpha from PNG Script, because RS Color Splitter doesn't work with the Viewport

Hey everybody!

For quite a while now, it’s been really bugging me that I can’t properly use the Color Splitter in Redshift to create an alpha cutout. I often work with PNGs on planes, and I haven’t found a good solution for dealing with the alpha not showing correctly in the viewport when using the Color Splitter node.

I searched the web, but the only workaround I found was using the Standard Renderer material for cutouts… meh.

So I asked Claude AI for a solution, and it gave me a script that extracts the alpha from a file (or multiple files at once) and saves it separately.

I’ve saved it in my Dropbox along with a few other scripts (all AI-generated – I can’t code 🙄), in case anyone is interested:

https://www.dropbox.com/scl/fo/4irq037lvt7oulg6b47p2/AL6Ogt0S_tRrLSIVEW7-Vms?rlkey=wu4ipzpnttdi2mbgap7yx1zny&st=brq0n74o&dl=0
(extract_alpha_MULTIFILE.py)

TL;DR:
Color Splitter node with alpha → viewport issue
Claude AI generated a script to extract alpha into a separate file

reddit.com
u/marcihuppi — 5 days ago