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