scorpes 1 Posted October 25, 2017 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: Share this post Link to post Share on other sites
scorpes 1 Posted October 25, 2017 (edited) accidently submitted this topic twice, could a moderator delete the other topic? Edited October 26, 2017 by scorpes Share this post Link to post Share on other sites
scorpes 1 Posted October 26, 2017 Here is the hip file: compile_colour_from_ramp.hipnc Share this post Link to post Share on other sites
Skybar 314 Posted October 26, 2017 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
scorpes 1 Posted October 26, 2017 (edited) :D:D:D Thanks a lot! Any idea why it works? Edited October 26, 2017 by scorpes Share this post Link to post Share on other sites