Jump to content
scorpes

Compile with ramp color for each piece

Recommended Posts

This is what I'm trying to do: Compile with for each loop and a ramp from attribute in a wrangle looping a color through each piece.

The for each loop works correctly and every piece get it's own color from the ramp. The compile sop compiles without errors but the colors for each piece is not working.

Any idea how to fix this?

Here is a screenshot from the setup:

screenshot_compile.jpg

Share this post


Link to post
Share on other sites

accidently submitted this topic twice, could a moderator delete the other topic?

Edited by scorpes

Share this post


Link to post
Share on other sites

It works if you do:

int iteration = detail(-1, "iteration", 0);
float rampPos = fit01(rand(iteration),0,1);
@Cd = chramp("ramp",rampPos);

 

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

×