Jump to content

Color by height


Recommended Posts

Hi,

I am using a music file to change the height of a bunch of boxes and was wondering how to change the color of the box based on its height.

I just started learning houdini so I am not very well versed with complex shading techniques. I tried using an Attrib VOP with a ramp in it, but the ramp is coming horizontally.

Any assistance will be helpful.

thanks!
 

bank5.hipnc

Link to comment
Share on other sites

This is a gotcha that's gotten me a few times. In the copy sop, you need to go to the Attributes tab and check "Use Template Point Attributes" which passes your height attribute through to you attribute VOP where you have effectively mapped it to your color ramp. I also brought your "height" attribute into the attribute VOP with a param node.

Cheers,

Ewan

bank5_airship.hipnc

  • Like 1
Link to comment
Share on other sites

1 hour ago, Airship said:

This is a gotcha that's gotten me a few times. In the copy sop, you need to go to the Attributes tab and check "Use Template Point Attributes" which passes your height attribute through to you attribute VOP where you have effectively mapped it to your color ramp. I also brought your "height" attribute into the attribute VOP with a param node.

Cheers,

Ewan

bank5_airship.hipnc

thanks! this works great :)

Link to comment
Share on other sites

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.

Guest
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...