Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AE SDK - how to know if user use the "Linearize Working Space" option in project settings ?

New Here ,
Feb 08, 2022 Feb 08, 2022

I'am wondering if there is a way to know if user use the "Linearize Working Space" option in the project settings. This information is not mentioned in the AE SDK documentation. Any help ?

Thanks !

 

TOPICS
SDK
349
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2022 Feb 09, 2022

does AEGP_ColorSettingsSuite2 have what you need?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 09, 2022 Feb 09, 2022

Hi Shachar,

Thanks for your help.

Unfortunatly the AEGP_ColorSttingsSuites2 only returns information about the Color Profile and approximated gamma about it.

But no information is passed about the setting of the "Linearize Working space" option located in the AE project Settings.

Was it activated by the user ?

Plugin developer is not able to know it...or i miss a point ?

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2022 Feb 09, 2022

use AEGP_ExecuteScript with "app.project.linearizeWorkingSpace".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 09, 2022 Feb 09, 2022

Thanks for the trick. But i don't want to activate the feature, only know its setting. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2022 Feb 09, 2022

you can read the value, you don't have to set it.

both the C api and the javascript api are incomplete. each has some capabilites the other doesn't.

i honestly don't see a way to get the linearize setting without resorting to javascript.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 09, 2022 Feb 09, 2022

Thanks.

Unfortunatly we can't run a javascript every frame to know a project setting. It would totally kill the frame rate.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 10, 2022 Feb 10, 2022

In my case I try to guess if it's linear or not based off the approximate gamma returned. 

ERR(suites.ColorSettingsSuite2()->AEGP_GetColorProfileApproximateGamma(colorProfile, &approx_gamma));

 

If linearise is enabled, the scene gamma should be 1.0 and if not, it should be >1.0. Not perfect but close enough in most cases.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 11, 2022 Feb 11, 2022
LATEST

Thank you James.

I'am going to test this solution !

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines