Channel color of custom attributes

Channel color of custom attributes

negow
Advocate Advocate
818 Views
0 Replies
Message 1 of 1

Channel color of custom attributes

negow
Advocate
Advocate

Hi all,

 

Is there a way to affect which *color* an attribute is given in the Channel Box when connected to a custom attribute? There are at least 3 separate colors attributes in the channel box.

 

- pairBlend connections become green

- animCurve connections become red

- any other connection become yellow

 

What I'm looking for is perhaps an attribute create call, or override in the MPxNode subclass to determine what that color ends up as. In this particular case, I'd like an attribute to be green. For asthetic reasons, and because they behave like those connected to pairBlend.

 

For example..

currentTime = uniFn.create("currentTime", "ctm" ,
                           MFnUnitAttribute::kTime,
                           0.0, &status);
uniFn.setStorable(false);
uniFn.setReadable(false);
uniFn.setHidden(true);
uniFn.setColor(MColor(0.25, 0.75, 0.25));  // <-- Where art thou?

 

Some visual proof..

 

negow_0-1599241264388.png

negow_1-1599241428088.png

 

Any ideas?

0 Likes
819 Views
0 Replies
Replies (0)