Color based on position/varying color based on velocity and pos

   1532   1   0
User Avatar
Member
4 posts
Joined: June 2017
Offline
Hey all, I'm very new to Houdini and had an idea I wanted to test, I realize it's not as original as it could be but it's the foundation to a much larger kernel of a plan.

I want to base the color of an object on its position, I saw the tutorial that had

if (@P.y > 0){

@Cd = set(0,1,0)
};
etc. but how can I set it to where the color is identified by the position?

IE: If the object is at .5, 1, .2 then the colors will be at .5, 1, and .2?
User Avatar
Member
2531 posts
Joined: June 2008
Offline
One of the simplest VEX lines.
v@Cd = v@P;
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
  • Quick Links