Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Channel color of custom attributes

0 REPLIES 0
Reply
Message 1 of 1
negow
697 Views, 0 Replies

Channel color of custom attributes

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 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report