Jump to content
Follyx

RGB Ramp in wranglenodes

Recommended Posts

Hi,

for a spline ramp I use :

f@foo = chramp('myramp',@P.x);

But whats with a colorramp? Neither in the help nor anywhere I could find ressources for it.

 

Share this post


Link to post
Share on other sites

Afaik, you have to change the type of the ramp in the Edit Parameter Interface manually. Like this:

Also the vex code then will be for example @Cd = chramp('myramp',@P.x);

 

ramp.thumb.PNG.37d60af44b0371b7ca32756e8dbdb450.PNG

  • Like 1

Share this post


Link to post
Share on other sites

yep. already knowed it, but thanks anyway. Thought there are some hidden parameter in the "chramp('myramp',@P.x)"....

Share this post


Link to post
Share on other sites

If you explicitly cast chramp to a vector first, the 'create spare parameters button' will create a colour ramp. Eg

@Cd = vector(chramp('myramp',@P.x));

 

  • Like 7
  • Thanks 2

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

×