Message 1 of 1
Channel color of custom attributes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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..
Any ideas?