Jump to content

Add color to existing color based on attribute?


Recommended Posts



So I have this grid who has colours from a from a noise, and then I make them lines and jitter them. 

I have made an attribute on it called 'eye'. And I want at the end of the chain to color my object a predefined red (color vector) where the 'eye' attribute is 1. And I want this on top of the existing color, which is what I don't know how to do.

How can I layer different colours on top of each other based on attributes in VEX and in VOPs (or any other way)?



Thank you! :) 

Edited by that Abstract guy
Link to comment
Share on other sites

not sure if that's what you're after, but use one of these lines to see different effects

//if(f@eye>0) @Cd = {1,0,0}; //overrides the color where @eye is 1
//if(f@eye>0) @Cd += {1,0,0}; //add red where @eye is 1
if(f@eye>0) @Cd *= {1,0,0}; //multiply with red where @eye is 1
  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...