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

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

Explorer ,
Mar 05, 2024 Mar 05, 2024

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
168
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
Adobe
Community Beginner ,
Oct 25, 2024 Oct 25, 2024
LATEST

I think It's what you want.

AIAPI AIBoolean(* IsSmoothShadingStyle )(AIParserPaintField paintField)

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