Allright, we found what the issue was, maybe.
You’re trying to override the material from inside the file, but you should do that adding the override code to the override snippet window in the vrscene loader.
from the article you linked: > For example, by adding the following code to the Override Snippet, you can assign a new clay material to all the objects in the scene.
You can, i am told, add your overrides to a separate vrscene file, and then load them with the “From file” option found in the vrscene loader.
ohhh.. that means I cannot use that syntax within a vrscene file? Deamn, that’s very unfortunate.
I’m trying to assemble multiple previously exported vrscene files “on the fly” without loading them in a 3d application again.
What I mean is, I assemble include commands in a text editor, and then render that assembly file using standalone.
Is there any way I can get this to work? Meaning, overriding a bunch of properties from within vrscene without explicitly having to overwrite for each object or material?
I saw that the commandline options come with a "-parameterOverride" - can I get some sort of pattern selection to work here?
hey @_Lele thanks, the parameter overrides work as expected. But it only allows me to override one or more parameters at the time when I use very specific naming, in my vrscene file for example I got to override a single material diffuse:
I could not get any pattern selection to work. I’ve tried a couple of things like these, but I don’t think it’s made to work like that:
-parameterOverride="<red*>@mtl_brdf_0.diffuse=AColor(0, 0, 1, 1)"
//not working
I mean, in the end I’d just like to be able to override parameters for multiple materials at once without having to specify each one specifically.
Do you think it’s possible?
The difficult part here is that VRayScene will not load render settings or render elements, you’ll have to load those separately somehow.
2. You could use V-Ray Application SDK and Python bindings instead of Standalone. This way you could match and override whatever you wish with a few lines of Python.
sorry I have to bother you once more, but I’m not sure if it’s a bug.
If I use standalone to render this file, and I use the -remap parameter in order to string replace paths, it does not seem to do it to the vrscene inside of the “loadScene1” definition.
Only to top level “includes” - is there a way it can be done recursively?