Announcement

Collapse
No announcement yet.

Auto replace material in Proxy with Ruby

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

  • Auto replace material in Proxy with Ruby

    I'm creating a ruby to select the active material in SketchUp and replace it with another automatically when clicking on the new material.

    What I want to do is replace this material also selects in the proxy, that is, if material A in the proxy is selected and I choose material B, this material also changes in the proxy.

    I really appreciate everyone's help.

    PS: I couldn't add my code


  • #2
    Click image for larger version

Name:	Screenshot_2.png
Views:	78
Size:	12.6 KB
ID:	1201325
    this error happens

    Comment


    • #3
      Replacing one sketchup material with another is more of a SketchUp ruby api issue than a V-Ray one. I don't quite understand what you're after in regards to proxies but if you disable the proxy materials (see bottom of image) the proxy will revert to using whatever sketchup material is applied to the component, allowing you to use the SketchUp ruby api without having to worry about the V-Ray one. You can find more info about the SketchUp ruby API at https://ruby.sketchup.com/Sketchup/Materials.html
      Click image for larger version  Name:	image.png Views:	0 Size:	14.8 KB ID:	1204091


      I am also getting the forum post error you reported. I'll report it.​​
      Last edited by noel.warren; 11-03-2024, 03:06 AM.

      Comment

      Working...
      X