Skip to main content
Participant
December 13, 2022
Answered

How to create gradient color UI components in After Effects plugins?

  • December 13, 2022
  • 3 replies
  • 1196 views

https://ae-plugins.docsforadobe.dev/effect-basics/parameters.html

Like the circled part in the picture, the colors property can call the gradient color panel and can be keyframed in a big way, which is hard to achieve when I create a custom UI. And I noticed that the gradient color object comes with an easy interface to the native effect, is there any way I can create it in the custom UI of the custom plugin?

This topic has been closed for replies.
Correct answer Mylenium

I think you misunderstand. What you are referring to is not an AE effect control, but rather a Photoshop based layer style. Hence the actual gradient function is part of the underlying PSD library. It just got a new coat of paint to look like the rest of AE and of course it itself is based on the Adobe color picker which itself is a unified component across all apps. So no, you cannot invoke it easily with a standard AE effects control call.

 

Mylenium 

3 replies

Community Expert
December 13, 2022

i'm not sure i fully understand the question... can you please rephrase or elaborate?

Richard Rosenman
Inspiring
December 13, 2022

Hi Shachar;

 

I believe he is asking if the SDK has a built-in parameter to select multiple colors for a gradient. In his screengrab, you can see he highlighted the Edit Gradient parameter. He's asking if the SDK comes with something like this, or if it needs to be custom coded. I too would like to know that but I haven't seen a parameter like that for multiple color selection so I assume that is a custom-coded function, and @Mylenium has also hinted that as well.

 

Anyway, that is how I understood his question but I'm sure he'll elaborate.

 

-Richard

Community Expert
December 13, 2022

ah. that actually makes sense.

if that's indeed what he's asking, then sdly the answer is no. the AE sdk offers no such standard param or interface.

i personally built gradient params a couple of times utilizing an arb param for the data and a custom UI. in my opinion, not such a big deal. 🙂
(but of course i'd rather have the SDK offer a standartized param for that)

Mylenium
MyleniumCorrect answer
Legend
December 13, 2022

I think you misunderstand. What you are referring to is not an AE effect control, but rather a Photoshop based layer style. Hence the actual gradient function is part of the underlying PSD library. It just got a new coat of paint to look like the rest of AE and of course it itself is based on the Adobe color picker which itself is a unified component across all apps. So no, you cannot invoke it easily with a standard AE effects control call.

 

Mylenium 

DringQianAuthor
Participant
December 14, 2022

I did misunderstand the UI component used for the layer style, thanks for the answer.

Dring

Richard Rosenman
Inspiring
December 13, 2022

I didn't know this was possible with the standard SDK parameters so I too would be very interested to know how this is done.

 

Regards,

-Richard

DringQianAuthor
Participant
December 13, 2022

I wonder too, because this if built with a custom UI requires an extremely complex set of data structures to support; to achieve the percentage of gradient points and interpolation points can be constructed arbitrarily, by the way this custom UI itself is not easy to achieve.

 

Regards,

-DringQian