MFnDagNode::objectColorIndex()

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Search this Thread Display Modes
  11 November 2017
MFnDagNode::objectColorIndex()

Hi,

I thought the 'MFnDagNode::objectColorIndex' would return the 'overrideColor' attribute value of the target node.
But all I get is always a '0' (and 'overrideColor' is definitely not '0').
So, am I wrong here or is 'objectColorIndex()' not working?

Also, 'MFnDagNode::objectColorRGB' returns always {0.0,0.0,0.0}...
My target node is of type 'kNurbsCurve'.
 
  11 November 2017
No, I believe it's meant to be used with this set of functions to specify a user defined (API side) color rather than to pull on the color that the viewport is displaying.

MFnDagNode::setUseObjectColor
MFnDagNode::usingObjectColor
MFnDagNode::setObjectColorIndex
MFnDagNode::objectColorIndex
MFnDagNode::objectColorRGB

If you want to pull the drawOverride color you would call:

MFnDagNode::drawOverrideEnabled()
MFnDagNode::drawOverrideColor()

If you just want the active/inactive colors, you would call:

MFnDagNode::activeColor()
MFnDagNode::dormantColor()
 
  11 November 2017
Keilun,

great and thanks for your continuous expertise!
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 06:33 PM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.