Modify Revit Materials from Grasshopper

Hi there,

I have a bunch of revit materials that I created in grasshopper and applied to direct shapes. Is there a way to apply a bitmap texture to the materials after I created them. I tried setting the “Image” parameter but I get the following error: “Failed to cast String to ElementID”

I’m guessing “Image” isn’t the parameter I’m looking for.

Any suggestions would be greatly appreciated!

i would suggest editing in Revit. Looks like a fairly large rabbit hole.

Visual Materials API

1 Like

Rabbit hole, yes it is. But who is afraid of a few rabbits?

Here is a prototype definition that I do not guarantee will run on anyone elses machine, But here it is: .
Materials_hi-res-lowres.gh (37.9 KB)

It creates a series of appearance assets that can be assigned to Revit Materials from a set of bitmaps and extra metadata. And with a quick switch can replace hi-res textures with low res and back again.

Then on the back half it pulls those assets apart:

This is just a prototype and they are just rabbits…

1 Like

Thanks for the efforts Scott! I will definitely dig into it a bit, need to dust off the copy of TwinMotion purchased a few weeks ago :slight_smile:

Yeah, you may want to call them about that purchase:

This is new, but I bet they honor it.

1 Like

Thanks very much Scott, this is amazing!

I’ll give it a try and let you know how it works.