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

C++-API: How to detect a Freeform-Gradient in a Paint-Field of an Appearance?

Explorer ,
Mar 05, 2024 Mar 05, 2024

Copy link to clipboard

Copied

Hi
working with the C++-API, it seems to me that the Freeform-Gradient can not be detected.

When requesting the Color of a Paint Field, and it is a Gradient which is Linear or Radial, the Color is set to kGradient, and inside the ColorInformation there is the Handle to that Gradient.

However, when it is a Freeform Gradient, the Color is set kNoneColor, which makes it impossible to detect the Gradient.

Also, the enum for Gradients defined in AIColor.h is only

 

/** Types of gradients, or color blends. See \c #AIGradientStyle. */
enum {
	/** A linear gradient extends in a straight line for a given length at a
		given angle from an origin point. */
	kLinearGradient = 0,
	/** A radial gradient is circular, and extends for a given radius around a highlight point. */
	kRadialGradient
};

 

 

 

 

So my questions are:

  • How to detect a Freeform-Gradient from a Paint Field of an Appearance?
  • How to get detailed information about the Freeform, like the information about the other gradients?

    Thank you
    Thorsten
TOPICS
Bug , SDK

Views

22

Translate

Translate

Report

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
no replies

Have something to add?

Join the conversation
Adobe