# Coloring the material problems

**URL:** <https://forum.dynamobim.com/t/coloring-the-material-problems/99318>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [March 22, 2024, 3:19am UTC](https://forum.dynamobim.com/t/coloring-the-material-problems/99318 "2024-03-22T03:19:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yusufarifin](https://avatars.discourse-cdn.com/v4/letter/y/b77776/32.png) [@yusufarifin](https://forum.dynamobim.com/u/yusufarifin)\
**Post date:** [March 22, 2024, 3:19am UTC](https://forum.dynamobim.com/t/coloring-the-material-problems/99318/1 "2024-03-22T03:19:33Z")

</div>

Hello everyone…  
I have a problem about coloring the material using dynamo based on spesific value to make sequence colour in some area.  
That spesific value place on point by point so the result like image 1, but i want the color result is placing in an area on each coloumn like image 2. Is that possible to do that?

 ![Colouring material problems](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/7/4795ed9cc58f4f078c2a3190e01b586763b4f62b.png)

I hope you understand my broken english, and also could help to solve this problem or show me my mistakes? thanks in advance

---

<div class="post-metadata">

**Author:** ![MartinSpence](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinspence/32/25208_2.png) [@MartinSpence](https://forum.dynamobim.com/u/MartinSpence)\
**Post date:** [March 22, 2024, 12:28pm UTC](https://forum.dynamobim.com/t/coloring-the-material-problems/99318/2 "2024-03-22T12:28:57Z")

</div>

Hi @yusufarifin ,

If all of your panels are the same type, and you want to differentiate the color, you need to make your material param an instance param, and then feed the output of the `AdaptiveComponent.ByPoints`-node to the `SetParameterByName`.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/d/0d97162d19999a996b2b54bc74e21d21c83108f9.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/8/8812ba47f7a6f6d434e899c68dafd9d78207d62f.png)  
It is also possible, that you need a transaction node here, as you are commiting two transactions in the same Dynamo run.

Give it a go and see what happens 🙂

---

<div class="post-metadata">

**Author:** ![yusufarifin](https://avatars.discourse-cdn.com/v4/letter/y/b77776/32.png) [@yusufarifin](https://forum.dynamobim.com/u/yusufarifin)\
**Post date:** [March 23, 2024, 1:58pm UTC](https://forum.dynamobim.com/t/coloring-the-material-problems/99318/3 "2024-03-23T13:58:15Z")

</div>

Thanks for the answer, i’m very appreciate that. I will do that soon, is the ‘transaction end’ means connect adaptive component to element.setparameterbyname directly (no node between them) ?

---

<div class="post-metadata">

**Author:** ![MartinSpence](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinspence/32/25208_2.png) [@MartinSpence](https://forum.dynamobim.com/u/MartinSpence)\
**Post date:** [March 23, 2024, 1:59pm UTC](https://forum.dynamobim.com/t/coloring-the-material-problems/99318/4 "2024-03-23T13:59:42Z")

</div>

Transaction.End is a node, and it goes between the two nodes you mention 🙂

---

<div class="post-metadata">

**Author:** ![yusufarifin](https://avatars.discourse-cdn.com/v4/letter/y/b77776/32.png) [@yusufarifin](https://forum.dynamobim.com/u/yusufarifin)\
**Post date:** [March 23, 2024, 2:08pm UTC](https://forum.dynamobim.com/t/coloring-the-material-problems/99318/5 "2024-03-23T14:08:14Z")

</div>

Wahh okay okay, i will try that soon, sorry i’m just begining using dynamo still not familiar enough about alot of nodes 😅

---

<div class="post-metadata">

**Author:** ![yusufarifin](https://avatars.discourse-cdn.com/v4/letter/y/b77776/32.png) [@yusufarifin](https://forum.dynamobim.com/u/yusufarifin)\
**Post date:** [March 24, 2024, 2:08am UTC](https://forum.dynamobim.com/t/coloring-the-material-problems/99318/6 "2024-03-24T02:08:40Z")

</div>

I have tried your suggest, but there is nothing happen on my profile family, any other suggest or recommendation what should i do to make my profile have colour based on spesific value?

 ![1 transaction](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/5/35cdf43a63181efc9a2eb7c51ab7650eb36aa551.png)

---

<div class="post-metadata">

**Author:** ![MartinSpence](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/martinspence/32/25208_2.png) [@MartinSpence](https://forum.dynamobim.com/u/MartinSpence)\
**Post date:** [March 24, 2024, 12:43pm UTC](https://forum.dynamobim.com/t/coloring-the-material-problems/99318/7 "2024-03-24T12:43:53Z")

</div>

Is it possible for you to share a sample model and the graph? I’ll see if I can find time to take a look at it.

---

<div class="post-metadata">

**Author:** ![yusufarifin](https://avatars.discourse-cdn.com/v4/letter/y/b77776/32.png) [@yusufarifin](https://forum.dynamobim.com/u/yusufarifin)\
**Post date:** [March 25, 2024, 1:22am UTC](https://forum.dynamobim.com/t/coloring-the-material-problems/99318/8 "2024-03-25T01:22:37Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/2/a2344ae5cd86bf0949147c842817938fc39bdd5c.png)

Sorry I think I have found the solution of the problem that I change the visual style to ‘consistent color’ like in an image. My first thought that I want to change the material family element ‘concrete’ color to sequence color, but when I change the visual style, it shows like I want. So, thanks for your offer
