catchyid Posted August 22, 2016 Share Posted August 22, 2016 Hi, In "color" sop node, I am trying to set the color value to a point attribute "rd" that I've created in an upstream Attribute Wrangler node. The problem is I am always getting 0.0 instead of the actual value of attribute "rd", hence the final color is always black. I am not sure what I am doing wrong?! Plz, see attached. Quote Link to comment Share on other sites More sharing options...
dimovfx Posted August 22, 2016 Share Posted August 22, 2016 (edited) you could just write @Cd = rand(@ptnum); or use "Color Type" = "Random from Attribute" in "color1" node. Edited August 23, 2016 by sasho78 1 Quote Link to comment Share on other sites More sharing options...
catchyid Posted August 22, 2016 Author Share Posted August 22, 2016 Thanks I was just throwing an example, setting color values is not my goal, sorry if I was not clear. My problem is that in any node I cannot read previously attributes using @ operator, so in this example, I was trying to read previously defined attribute rd and copy it to @Cd in an expression, but it did not work, and I am not sure why? Once more, thanks Quote Link to comment Share on other sites More sharing options...
MirrorSword Posted August 22, 2016 Share Posted August 22, 2016 (edited) The problem is that not all nodes support those per point local variable. From the help docs on the color node: Quote This is a Houdini Digital Asset and does not support local variables. To have different colors per element, see the other more advanced SOPs: Point, Primitive, Vertex. So you just need to use a Point sop instead of the color sop. Edited August 22, 2016 by MirrorSword 1 Quote Link to comment Share on other sites More sharing options...
catchyid Posted August 23, 2016 Author Share Posted August 23, 2016 Alright, thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.