Announcement

Collapse
No announcement yet.

Reload Proxies' Materials

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reload Proxies' Materials

    I have been facing a problem loading materials from Proxy objects, especially from previous versions like 3.6. Would there be a way to reload these materials in V-Ray 4.2 or newer, using the ruby ​​console from the .vrmat file created from the proxy? I noticed that there was an update to this .vrmat file in the new versions. Thanks

  • #2
    konstantin_chaos Is it possible to create a ruby ​​script that allows you to change the materials in a list in the proxy? For example, I have a blue fabric material and I want to select a red fabric, which is in my list of materials, and change it in the selected proxy model. I consulted the V-Ray API, but it is still a bit limited and I did not find a function that would allow this change. Could you help me? Thanks

    Comment


    • #3
      Hi henriqueb​,

      What you're after is possible.
      I'll try to put together an example script and share it.

      Konstantin

      Comment


      • #4
        Here's a very simple example - ReplaceProxyMaterial_01.zip
        It finds a proxy called "Proxy1" and replaces it's materials with 2 materials called "red_material" and "blue_material".

        Before:
        Click image for larger version  Name:	image.png Views:	0 Size:	117.3 KB ID:	1228208

        After:
        Click image for larger version  Name:	image.png Views:	0 Size:	119.4 KB ID:	1228209

        Hope that helps
        Last edited by konstantin_chaos; 05-03-2025, 01:26 AM.

        Comment


        • #5
          Simplified / improved version of the script - ReplaceProxyMaterial_02.zip

          Comment


          • #6
            Hi Konstantin, many thanks. I will try it.

            Comment

            Working...
            X