# Automatic Painter ;)

**URL:** <https://forum.dynamobim.com/t/automatic-painter/15072>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [September 24, 2017, 5:40pm UTC](https://forum.dynamobim.com/t/automatic-painter/15072 "2017-09-24T17:40:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hilda\_verstraete](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@hilda\_verstraete](https://forum.dynamobim.com/u/hilda_verstraete)\
**Post date:** [September 24, 2017, 5:40pm UTC](https://forum.dynamobim.com/t/automatic-painter/15072/1 "2017-09-24T17:40:18Z")

</div>

Hello everydoby,

I think my problem is a little bit complex but maybe there is a genius on this forum 🙂  
I would like to paint every single face ( even in-situ models ) with a different material in the scene.  
Every material need to be automatically created ( like material-1 , material-2 and so on for every face in the project :-D)  
Is this possible with Dynamo or Python?  
I would really appreciate some help.  
Thank you very much.

Ernest

---

<div class="post-metadata">

**Author:** ![talbimam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/talbimam/32/32376_2.png) [@talbimam](https://forum.dynamobim.com/u/talbimam)\
**Post date:** [September 24, 2017, 6:26pm UTC](https://forum.dynamobim.com/t/automatic-painter/15072/2 "2017-09-24T18:26:51Z")

</div>

Just like randomly painted ? Or with some logic ?

---

<div class="post-metadata">

**Author:** ![hilda\_verstraete](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@hilda\_verstraete](https://forum.dynamobim.com/u/hilda_verstraete)\
**Post date:** [September 24, 2017, 6:30pm UTC](https://forum.dynamobim.com/t/automatic-painter/15072/3 "2017-09-24T18:30:23Z")

</div>

randomly is fine :-p

---

<div class="post-metadata">

**Author:** ![talbimam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/talbimam/32/32376_2.png) [@talbimam](https://forum.dynamobim.com/u/talbimam)\
**Post date:** [September 24, 2017, 6:45pm UTC](https://forum.dynamobim.com/t/automatic-painter/15072/4 "2017-09-24T18:45:05Z")

</div>

First you have to pick up all of your geometry, then taking every face in a list, you have also to make a list of material you want to apply to your project, duplicate them the same number of you facecs and then use the shuffle node to mix them and apply them to the selected faces.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 24, 2017, 6:48pm UTC](https://forum.dynamobim.com/t/automatic-painter/15072/5 "2017-09-24T18:48:39Z")

</div>

I can see the smoke coming out of the CPU already…

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [September 24, 2017, 6:51pm UTC](https://forum.dynamobim.com/t/automatic-painter/15072/6 "2017-09-24T18:51:15Z")

</div>

Hi

Try this after the smoke has cleared

> [@Paint Material Surface](https://forum.dynamobim.com/t/paint-material-surface/14026):
>
> Hello everybody I’m trying to find a way to paint on the surface of a element, or node can do this [Color]

You will have to randomize it tho

Marcel
