# Grasshopper Custom Render Objects

**URL:** <https://discourse.mcneel.com/t/grasshopper-custom-render-objects/44567>\
**Category:** Gallery\
**Tags:** grasshopper, cycles\
**Created:** [May 29, 2017, 10:08pm UTC](https://discourse.mcneel.com/t/grasshopper-custom-render-objects/44567 "2017-05-29T22:08:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidRutten](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/davidrutten/32/755688_2.png) [@DavidRutten](https://discourse.mcneel.com/u/DavidRutten)\
**Post date:** [May 29, 2017, 10:08pm UTC](https://discourse.mcneel.com/t/grasshopper-custom-render-objects/44567/1 "2017-05-29T22:08:08Z")

</div>

Testing automatic inclusion of GH geometry with custom materials in the render process. This can be done using the [Custom Display] component in next weeks Serengeti WIP release:

Be careful when baking though, all too easy to end up with something like this:

---

<div class="post-metadata">

**Author:** ![jeff\_hammond](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jeff_hammond/32/768846_2.png) [@jeff\_hammond](https://discourse.mcneel.com/u/jeff_hammond)\
**Post date:** [May 30, 2017, 1:27am UTC](https://discourse.mcneel.com/t/grasshopper-custom-render-objects/44567/2 "2017-05-30T01:27:34Z")

</div>

nice!

---

<div class="post-metadata">

**Author:** ![DavidRutten](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/davidrutten/32/755688_2.png) [@DavidRutten](https://discourse.mcneel.com/u/DavidRutten)\
**Post date:** [May 30, 2017, 9:14am UTC](https://discourse.mcneel.com/t/grasshopper-custom-render-objects/44567/3 "2017-05-30T09:14:40Z")

</div>

Here are four ways to assign materials to the custom preview.

- Straight from a colour.
- Using a [Create Material] component.
- By material name in the current 3dm file.
- From an RMTL file path.

---

<div class="post-metadata">

**Author:** ![velopl](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/velopl/32/153438_2.png) [@velopl](https://discourse.mcneel.com/u/velopl)\
**Post date:** [May 30, 2017, 1:26pm UTC](https://discourse.mcneel.com/t/grasshopper-custom-render-objects/44567/4 "2017-05-30T13:26:50Z")

</div>

Fantastic! This is what I’ve been waiting for 🙂

@DavidRutten @nathanletwory Will it work with new shader components?

---

<div class="post-metadata">

**Author:** ![Holo](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/holo/32/496872_2.png) [@Holo](https://discourse.mcneel.com/u/Holo)\
**Post date:** [May 30, 2017, 1:36pm UTC](https://discourse.mcneel.com/t/grasshopper-custom-render-objects/44567/5 "2017-05-30T13:36:17Z")

</div>

Ah, that brings up an old wish: The ability to purge similar materials and also to drag a material on top of another to both merge those materials and their assignments. Those are very handy tricks to tidy up a file.

PS! Looks smashing!

-Jørgen

---

<div class="post-metadata">

**Author:** ![DavidRutten](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/davidrutten/32/755688_2.png) [@DavidRutten](https://discourse.mcneel.com/u/DavidRutten)\
**Post date:** [May 30, 2017, 1:48pm UTC](https://discourse.mcneel.com/t/grasshopper-custom-render-objects/44567/6 "2017-05-30T13:48:36Z")

</div>

> [@velopl](#):
>
> Will it work with new shader components?

The `Material` type in Grasshopper should also be able to handle Xml material strings, but I haven’t tested it.

---

<div class="post-metadata">

**Author:** ![nathanletwory](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nathanletwory/32/482880_2.png) [@nathanletwory](https://discourse.mcneel.com/u/nathanletwory)\
**Post date:** [May 30, 2017, 2:39pm UTC](https://discourse.mcneel.com/t/grasshopper-custom-render-objects/44567/7 "2017-05-30T14:39:16Z")

</div>

For that you’d add a Cycles XML Material which you the reference like a normal material added to a Rhino document.
