Hidari Posted March 21, 2021 Share Posted March 21, 2021 Hi there, I was trying to batch process my blender rendered .exr files to png and even though the exr files are saved in RGBA, I cannot get them into png format with a transparent background. Regardless what I do, the backgorund is alsways black as one or more of the render layers in the exr shows a black background. I would only want the top view (RGBA) layer with the transparent background. How can I do that? Thanks so much for your help! Best, Hidari Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted March 21, 2021 Share Posted March 21, 2021 Welcome to the Serif Affinity forums. To get a transparent background you need to enable the menu option Document > Transparent Background. You could try recording a macro to enable that option, saving it from your Macro panel into your Library panel, and then running the macro as part of your batch job. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.1.1 Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.1.1 Link to comment Share on other sites More sharing options...
Hidari Posted March 22, 2021 Author Share Posted March 22, 2021 Hi Walt, thank you very much for your quick reply. I tried to record the Macro as you suggested, but unfortunately, it did not work. I am still getting PNGs with black background. I, then, tried another Macro to delete the layers with background and only keep the to layer, but I cant get this to do the job either. I am attaching pics of my EXR files with layers to better illustrate my problem. I need my final PNG only to contain the top layer "View Layer.Combined.RGBA". This needs to be achieved in a batch process as I need to apply this on several hundreds of animation stills. Again,thank you very much for your help! Best regards, Hidari Quote Link to comment Share on other sites More sharing options...
John Rostron Posted March 22, 2021 Share Posted March 22, 2021 If you could post your original .exr file or an equivalent .afphoto file, we could try this for ourselves. We cannot really use your screenshot for this. John Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
Hidari Posted March 22, 2021 Author Share Posted March 22, 2021 (edited) Hello John, I am attaching one of my exr files to this post. Thank you for your help, Best, Hidari Edited March 22, 2021 by Hidari Problem is solved and I dont want to further spread this file. Quote Link to comment Share on other sites More sharing options...
telemax Posted March 22, 2021 Share Posted March 22, 2021 Try this macro: Alpha.afmacros Macro.mp4 Hidari 1 Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
Hidari Posted March 22, 2021 Author Share Posted March 22, 2021 Hi and thanks for posting the macro. It does make the background transparent, yet, now my png looks like this: Quote Link to comment Share on other sites More sharing options...
telemax Posted March 22, 2021 Share Posted March 22, 2021 m.mp4 Hidari 1 Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
Hidari Posted March 22, 2021 Author Share Posted March 22, 2021 And you get the same result when doing it through the batch process? Quote Link to comment Share on other sites More sharing options...
telemax Posted March 22, 2021 Share Posted March 22, 2021 check this settings m2.mp4 Hidari 1 Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
telemax Posted March 22, 2021 Share Posted March 22, 2021 5 minutes ago, Hidari said: And you get the same result when doing it through the batch process? Yes Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
Hidari Posted March 22, 2021 Author Share Posted March 22, 2021 Hi telemax, thanks so much! It worked using your macro. For some reason, "Associate OpenEXR alpha channels" was checked in my case. I unchecked it and everything is perfect. Thanks so much again! telemax 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.