Hi all, I’m new to dynamo and this forum, I’m hoping someone can assist me to get my first dynamo script working as currently it’s sending me into a spin
I’m trying to create a dynamo script to save time when creating a cut and fill volume analysis rather than manually changing the colours from light to dark green and red respectively either side of the datum,.
So far I can get this to work individually for either cut or fill, however I can’t get it to work combined. Any help or advice would be greatly appreciated…as I’m a new member I can’t upload the .dyn file but I’ve included an image of the script
Hi JaLo, thanks for the reply, if this is something you have done before can you show me how that would look please. (edited: seen the link you posted in the previous reply)
the issue I get when I put the both colours into one is that the green is correct up to the datum but then the colours blend for first few ranges then the red colour starts
Hi Anton, thanks for the reply. I appreciate the graph overwrites itself, it was more of a demonstration of what I wanted to achieve for above and below the datum (cut and fill).
I’ve tried using the surface analysis with the extra node as you suggested and unfortunately it doesn’t give me what I want either. The chosen colour blends from white and the cut ranges are reversed in the analysis, it should be -6 to 0 then 0 to 4 where this shows 0 to -6 then 0 to 4
Yes, the colors blend from the set color to white. The visual order in the Analysis tab might look a bit weird but the colors are correct. Lowest point and highest point are most dark. I’ll add to the backlog to reverse the cut range.
I appreciate the colours are correct (lowest and highest points being the darkest) but is there a way to reverse the cut range so the legend reads in ascending numerical order. Also, is there a way to change the white to another colour.
This seems to be what you’re asking for. Based on your initial attempts, it seems like you can provide more than one color for a color range. You just need to provide enough colors (at the “spacing” you want) to get the gradient you’re after. Use of the color range node (as shown in that link) will give you a good visual of what that looks like and can be used to specify the exact color of every interval in your range.