Grasshopper - Material Overide for Proxy Scene Input?

Is there a material overide in V-ray grasshopper that I’m missing?

I’ve got a few quite complex files including transparent materials that I’m importing into grasshopper via ‘Proxy Scene’ files. I’d like to be able to overide the assigned materials with simpler materials for setup. I was hoping to do this in grasshopper without having to create multiple proxy scene files to switch between…

I don’t think that is currently possible. Chaos folks: It would be nice to have some Deconstruct nodes for this type of case where we can get the data contained withing the geometry and override it and reconstruct it.

Hi,

there is .vrscene importer in Rhino, so “deconstruct nodes” is practically there, you just need to reference the resulting geometry in GH.
​​​​
​​​there is material override feature planned for GH but it is not clear how would it work. Current idea is to be conceptually identical to the material override in the AssetEditor - that means it will be on a scene level, rather than on per-geometry level

How about a node that allows other geometry inputs, overrides them, then outputs new vray geometry. Like that we could plug both types into the render node.

I didn’t understand what you mean. Can you give a concrete example

Sure, see screnshot below: The override node would override the metal material with a generic one.

It could be used to override all geometries by plugging them in to the override node, or specific geometries to override.

​​

And how is that different from this one ?

there are already available components for conditional selection. No need to invent new ones​

btw: You don’ t need to have the Merge node. In your picture, you can plug the VGeos directly into the renderer

It’s quite simple, your method adds much more complexity to the definition, and doesn’t address the Proxy Scene material override that this post is about.

What I suggest keeps VRay Geometry definitions cleaner, places the override after their definition and before the Render node, where it logically happens.

Your method also adds more nodes and many more wire connections.

​

@nikolay.bakalov https://forums.chaos.com/forum/v-ray…58#post1184258

I think a global overide like what we have within Rhino would be a great start if it’s at the ‘Render’ component level (see sketch below) - assuming it also work with the ‘can be overiden’ checkbox in individual materials referenced into Grasshopper as well.

Would an application like this support overiding VR Proxy Scenes referenced into Grasshopper?

Rhino/VRay does allow for selected materials to not be overridden, so having that option in grasshopper would also be nice to have. Thought a global override could respect the rhino material’s setting to not be overridden, materials created in grasshopper would not have the same option.

This is what I have already explained in post Blogs

I gave my proposal to show that there is a solution to the problem (workaround) available today, that targets overriding the material before it gets to the geometry. This is the usual GH way. There is no such workaround for the proxy scene component, and I didn’t aim to solve it at all.
The proxy scene material override will be addressed by the same global material override, explained in post Blogs

@nikolay.bakalov I’m not sure what you’re linking to with “post Blogs” above - the link doesn’t take me anywhere useful?

​

The node I suggest addresses all issues and allows the flexibility of global and on material only basis while minimizing the amount of plumbing involved, and I believe it to be the one that reflects the Rhino/VRay workflow the most.

But its your product, do as you will. I’m just a user.

Hi paul-twoatsix,
Sorry for the confusion. This forum system is playing tricks to me again. I was referring to post 3 in this topic
https://forums.chaos.com/forum/v-ray-for-rhino-forums/v-ray-for-rhino-bugs/1183770-grasshopper-material-overide-for-proxy-scene-input?p=1184258#post1184258
(I checked the link this time, it works)​

@nikolay.bakalov no worries at all - I think we’ve both tried two different ways to link back to your first comment in this thread. I’ve only just figured out how to quote in a reply as well…

Anyway - I’m looking forward to see what you guys come up with in terms of a general material overide in grasshopper. With regards to a Proxy Scene material overide - I can just export two versions (base material and production) - or export proxy meshes that I can apply materials to within Grasshopper.​

Hi richard_aubin,

I see your point, but for the time being we will only support global material override, as I explain already. It will look like what paul showed. That was our idea as well.
If we decide to go with per-geometry override, the way you suggested will only work for the regular VGeo. That component is the only that outputs a geometry. All the rest of them: Scatter, Instancer, Cosmos, Proxy scene and Proxy mesh, have “VGeo” only as a hint where to connect it, they do not output actual geometry (e.g. V-Ray Node plugins). For example the proxy scene outputs a string - the .vrscene path.

I know it looks like simple and clean enough on the surface, but it is not such in code.