sant0s81 Posted May 4, 2020 Share Posted May 4, 2020 (edited) Hello, I have a HF with different layers/masks. In COP I want to modify these layers. The problem is, that when I SOP Import the height, I get a white image only. In the viewer I can normalize the height - but of course it has no effect on the shader tree. I tried to add a fitrange to get the height normalized, but somehow nothing is changing in the shader tree. Is there a correct way, doing that? Thx alot, sant0s Edited May 5, 2020 by sant0s81 Quote Link to comment Share on other sites More sharing options...
Atom Posted May 4, 2020 Share Posted May 4, 2020 I think you're on the right track, perhaps create a new attribute from the height and cops will pick it up. You can leverage the promotion technique to get the minimum and maximum height values and store them as detail attributes. Then the fit might work. f@height_NORMALIZED = fit(@height,detail(0,"lowest"),detail(0,"highest"),0,1); v@Cd =f@height_NORMALIZED; 1 Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted May 4, 2020 Share Posted May 4, 2020 (edited) There is a "remap range" function right in the SOP import. I think the equalize node can normalize colors in COPs, too. Edited May 4, 2020 by konstantin magnus 1 Quote Link to comment Share on other sites More sharing options...
sant0s81 Posted May 5, 2020 Author Share Posted May 5, 2020 (edited) @konstantin magnus , thanks alot, I just didnt see the "remap range" - works perfect! And thx for the VEXSnippet @Atom Just started to learn VEX more serious and I actually understand what you wrote there... thats so cool! Great day to y'all, sant0s Edited May 5, 2020 by sant0s81 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.