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