Adding a gradient control to the attribute editor

Adding a gradient control to the attribute editor

Anonymous
Not applicable
384 Views
1 Reply
Message 1 of 2

Adding a gradient control to the attribute editor

Anonymous
Not applicable
I have an attribute that I have added to a node that I want to control with a gradient control (curve type). I can create the control and I can even make it show up in a a separate window, but what I want is for it to show up in the attribute editor under the Extra Attributes section, or it's own section. I try to add it to the attribute editor with the AEaddRampControl mel script and I get errors. If I call AEmakeRampControlInteractiveNew instead I actually get the control to show up in the attribute editor, but it appears at the bottom of the editor amongst the buttons (select, load Attrs, etc.). How can I add this control to a specific location in the AE?
0 Likes
385 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I don't have a great answer for this one right away. But maybe we can talk it through a bit.
If you had created a new node plugin, you could write your own AEmyNodeScript and imitate whatever is going on in the AE script of a node with similar functionality. (nucleus stuff perhaps)

If you don't want to create a node plugin because you'd like to be able to slap this extra attribute on any node and get it to look as expected in the attribute editor, it may get a little more convoluted.

One way you could work around this today is by using assets. You could create a container with your node complete with it's extra attribute inside, and also have a node inside that has the interface to the extra attribute that you'd like to imitate. If you connect up the interface to your extra attribute to drive it, and publish up all the attributes that you'd like to see in the attribute editor, only not the extra attribute, but now its new controlling attribute, then you could see all your attributes on one node, now the asset, and have extra control over the placement and groupings of the attributes on your asset through the asset template.
0 Likes