• Globale Community
    • Sprache:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Spezielle Community für Japanischsprachige
  • 한국 커뮤니티
    Spezielle Community für Koreanischsprachige
Beenden

How to export to Open EXR with alpha chanel without being premultiplied

Teilnehmer ,
Nov 14, 2019 Nov 14, 2019

Link in Zwischenablage kopieren

Kopiert

How to export to (Open EXR with alpha chanel without being premultiplied)

 

just render to Open EXR with alpha packed up within frame and not being premultiplied?

 

 

Any thoughs?

Ofcourse88
THEMEN
Anleitungen

Zugriffe

17.9K

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines

correct answers 1 richtige Antwort

Entdecker , Feb 12, 2021 Feb 12, 2021

Sorry, this DID work! I created a script file called EXR.jsx and added the code:

var section = "Misc Section";
var pref = "Allow writing straight alpha into EXR";
var type = PREFType.PREF_Type_MACHINE_INDEPENDENT;

if(app.preferences.havePref(section, pref, type))
{
	if(app.preferences.getPrefAsBool(section, pref, type))
	{
		alert("EXR straight alpha pref already set to TRUE.");
	}
	else
	{
		alert("EXR straight alpha pref was set to FALSE. Setting to TRUE.");
		
		app.preferences.savePrefAsBool
...

Stimmen

Übersetzen

Übersetzen
Enthusiast ,
Nov 14, 2019 Nov 14, 2019

Link in Zwischenablage kopieren

Kopiert

In AE 2020 you can switch to Straight alpha from premultipled. Previous versions forced you to use premultiplied, because that confroms to the EXR spec.

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Teilnehmer ,
Jan 29, 2020 Jan 29, 2020

Link in Zwischenablage kopieren

Kopiert

I will give it a try the next time, i thank you for now.

Ofcourse88

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Beitragender ,
Nov 17, 2020 Nov 17, 2020

Link in Zwischenablage kopieren

Kopiert

Naah, 2020 still has the dropdown for alpha type grayed out when EXR is selected as the output format 😞

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Entdecker ,
Feb 10, 2021 Feb 10, 2021

Link in Zwischenablage kopieren

Kopiert

hey fnord, can you explain how to enable this straight alpha feature inside AE? I cannot figure it out! Im running latest version of AE 2020. Im even willing to use a different (older) version of after effects to unlock this feature.

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Enthusiast ,
Feb 10, 2021 Feb 10, 2021

Link in Zwischenablage kopieren

Kopiert

It doesn't work for me either! Did I dream it?

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Entdecker ,
Feb 11, 2021 Feb 11, 2021

Link in Zwischenablage kopieren

Kopiert

Hey fnord, 

 

Thanks for your reply! Do you know any way under the sun to export an EXR from After Effects with a Straight alpha channel? Does your ProEXR plugin allow this?

 

Kind regards,

Felix

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Enthusiast ,
Feb 11, 2021 Feb 11, 2021

Link in Zwischenablage kopieren

Kopiert

What you're supposed to be able to do is quit AE and then open the AE Prefs file (e.g. Adobe After Effects 17.7 Prefs.txt) navigate to the ["Misc Section"] and … (see additional post below)

 

 

 

 

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Enthusiast ,
Feb 11, 2021 Feb 11, 2021

Link in Zwischenablage kopieren

Kopiert

There is another way to write a straight RGBA file using ProEXR, now built into AE.

 

  1. Drop your final comp into a new comp and duplicate the layer.
  2. For the top layer, apply a Shift Channels with Alpha set to Full On. Keep Red, Green, and Blue as they are. Name this layer RGB.
  3. For the bottom layer, apply Shift Channels with Alpha set to Full On. Set Red, Green, and Blue to Alpha. Name this layer A.
  4. Write the file using Composition > Save Frame As > ProEXR.
  5. In the ProEXR settings, turn off "Include layer composite".
  6. Click the Render button.

 

Obviously this method is much more trouble, but it's there.

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Enthusiast ,
Feb 11, 2021 Feb 11, 2021

Link in Zwischenablage kopieren

Kopiert

OK, I have the correct answer for you, courtesy friends at Adobe.

 

Quit AE and edit the Prefs file called something like Adobe After Effects 17.7 Prefs-indep-general.txt. In the ["Misc Section"] you want to have this:

 

"Allow writing straight alpha into EXR" = 01

 

You may already have it there, with the value set to 00.

 

You can also run a script like this:

 

var section = "Misc Section";
var pref = "Allow writing straight alpha into EXR";
var type = PREFType.PREF_Type_MACHINE_INDEPENDENT;

if(app.preferences.havePref(section, pref, type))
{
	if(app.preferences.getPrefAsBool(section, pref, type))
	{
		alert("EXR straight alpha pref already set to TRUE.");
	}
	else
	{
		alert("EXR straight alpha pref was set to FALSE. Setting to TRUE.");
		
		app.preferences.savePrefAsBool(section, pref, true, type);
	}
}
else
{
	alert("EXR straight alpha pref not set. Setting to TRUE.");
	
	app.preferences.savePrefAsBool(section, pref, true, type);
}

 

 

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Entdecker ,
Feb 12, 2021 Feb 12, 2021

Link in Zwischenablage kopieren

Kopiert

Hey fnord!

 

thanks for all these replies. I had the same response from Rameez Khan at Adobe about adding

 

"Allow writing straight alpha into EXR" = 01

But I couldn't make it work. I tried 00, 01, "1" but none of these numbers enabled the straight alpha feature. Did you manage to get this to work in your after effects? Thanks for ur ongoing help!

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Entdecker ,
Feb 12, 2021 Feb 12, 2021

Link in Zwischenablage kopieren

Kopiert

Sorry, this DID work! I created a script file called EXR.jsx and added the code:

var section = "Misc Section";
var pref = "Allow writing straight alpha into EXR";
var type = PREFType.PREF_Type_MACHINE_INDEPENDENT;

if(app.preferences.havePref(section, pref, type))
{
	if(app.preferences.getPrefAsBool(section, pref, type))
	{
		alert("EXR straight alpha pref already set to TRUE.");
	}
	else
	{
		alert("EXR straight alpha pref was set to FALSE. Setting to TRUE.");
		
		app.preferences.savePrefAsBool(section, pref, true, type);
	}
}
else
{
	alert("EXR straight alpha pref not set. Setting to TRUE.");
	
	app.preferences.savePrefAsBool(section, pref, true, type);
}

 

Then saved it and ran it inside AE and the option is there now! THANK YOU! :)))

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Beitragender ,
Mar 09, 2021 Mar 09, 2021

Link in Zwischenablage kopieren

Kopiert

Works, thanks.

Does any of you know if it is the designed way, or is it just a bug and they will fix it in the futue?

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Neu hier ,
Feb 09, 2022 Feb 09, 2022

Link in Zwischenablage kopieren

Kopiert

Sir, this script is not working in After Effcets 2022 and i also try to run the script in old version i,e. After Effects CS6... Still not working. (Its giving a notification that, an error occured in 3rd line.. I m clueless.. Plz help me out.

Thanks

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Enthusiast ,
Feb 09, 2022 Feb 09, 2022

Link in Zwischenablage kopieren

Kopiert

Works as expected for me in 2022. Here's the .jsx file you make. Run it with File > Scripts > Run Script File…

 

This forum wouldn't let me upload a .jsx, so you'll have to take off the .txt part before you try to run it.

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Neu hier ,
Feb 09, 2022 Feb 09, 2022

Link in Zwischenablage kopieren

Kopiert

Sir, its so much of help and thank you a lot, its working.. Now i get the
straight(unmatted) option on at the time of exporting. But i am unable to
get alpha channel into the rendered file its still showing the background
but no alpha embedded in it. So is there any setting or something to get
both background and alpha together in the footage without any extra render
pass.
Please guide me one more time.
Thanks

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Enthusiast ,
Feb 10, 2022 Feb 10, 2022

Link in Zwischenablage kopieren

Kopiert

I'm not totally sure what you're seeing, but if you render your EXR out straight, you also have to interpret it straight when you bring it back in.

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Neu hier ,
Nov 22, 2022 Nov 22, 2022

Link in Zwischenablage kopieren

Kopiert

Hello,

 

Your script is good, thanks ! But, I have the same problem here.

I would like to export an EXR including both RGB and alpha (I have a phone overlay layer, with a finger rotoscoping layer on top and a background underneath). However, I can't decide between the alpha of the phone layer and my final composition when I import it into Davinci, when it should be an EXR multichannel. Could you enlighten me please? 🙂


Cordially

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Enthusiast ,
Nov 22, 2022 Nov 22, 2022

Link in Zwischenablage kopieren

Kopiert

Yeah, sounds like you have multiple layers and want to make a multichannel EXR using Composition > Save Frame As > ProEXR.

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Neu hier ,
Nov 23, 2022 Nov 23, 2022

Link in Zwischenablage kopieren

Kopiert

Hello, thanks for your answer ! Yess, I would like to do that but when I import my EXR exported according to this method I only have one RGB layer without the alpha, all my layers are grouped and I cannot choose to display only the alpha of my phone's layer.

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Enthusiast ,
Mar 11, 2023 Mar 11, 2023

Link in Zwischenablage kopieren

Kopiert

AKTUELL

You can import your EXR as a composition and all the channels will be available to you via the EXtractoR plug-in. You can also get a menu item to do it as described in this post.

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Engagiert ,
Apr 29, 2021 Apr 29, 2021

Link in Zwischenablage kopieren

Kopiert

Just came to find out the same thing. Why has this not been addressed yet? Seems like a simple fix. 

There is a caveat to the script file as well - Although the alpha is correctly being exported straight, the flag inside the file is still set to premult so any other software and indeed After Effects will interpret it incorrectly as premult when imported and needs to be manually changed.

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Enthusiast ,
Apr 29, 2021 Apr 29, 2021

Link in Zwischenablage kopieren

Kopiert

This option is intentionally left hidden because the EXR spec calls for files to be premultiplied. There is no flag in an EXR to mark it as straight.

 

Some people wanted to put a straight alpha in an EXR for whatever reason, so this allows them to do it, but they are responsible for dealing with whatever issues it may cause down the line.

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Beitragender ,
Apr 29, 2021 Apr 29, 2021

Link in Zwischenablage kopieren

Kopiert

The reason is quite simple.

With a straight alpha matte you can give the colorist a shot with a matching alpha mask in a single file sequence.

More and more colorists ask for alpha masks for particular objects so they can use it during grading. If we can't save alpha as straight the same process requires two separate file sequences - it's just easier to put everything into one.

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Beitragender ,
Apr 29, 2021 Apr 29, 2021

Link in Zwischenablage kopieren

Kopiert

Sure you could say that that's what layers in EXR are for but seriously, extracting layers from an EXR sequence is waaaaaay beyond the capabilities of any colorist I know. You just can't teach them the core concept of layers in a single file 😕 The alpha trick is thankfully something they can use - partly because Resolve does this for them 🙂

Stimmen

Übersetzen

Übersetzen

Melden

Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines