Jump to content
remsug

Why Wrangle and Vop, chramp function Worked different?

Recommended Posts

Hi Guys

I have a question for chramp function 

I moved RampValue using Addvop or Add function

wrangle worked Look like repeat and vop worked clamp

I don't know why two output is different 

image.png.80b3ffa2ceb1e44f58b64c45730f2ef0.png

(Left image uses Wrangle Node and the right image uses Vop Node)

I think Solution is same , but result is different 

I wonder why this results

 

chramp.hipnc

Share this post


Link to post
Share on other sites

If you want to repeat the values using VOP one way is doing something similiar to what happens inside the shaders. Otherwise is going to hold the last value

chramp_cycle.hipnc

Edited by Andrea
  • Like 1

Share this post


Link to post
Share on other sites

Thanks Andrea

Is it possible to do the opposite?

I want clamp for Wrangle Sop

Share this post


Link to post
Share on other sites

Sure, you just need to clamp the input value in chramp

bbox = chramp("color",clamp(bbox.x,0,1));

  • Like 1

Share this post


Link to post
Share on other sites

Wow! Thanks Andrea 

I really want to thank you for your help

You saved my time

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×