Hi,
I really don't know anything about python, so was just wondering on how to modify your example script:
How do I get the line below to change ALL materials in the scene, not just the first node?
And second part, how does one issue a command to get this to appear in the "Post Translate Python Script" area in the GUI.
So basic I know!
I really don't know anything about python, so was just wondering on how to modify your example script:
from vray.utils import *
l=findByType("Node") # Get all Node plugins
p=l[0].get("material") # Get the material of the first node
brdf=p.get("brdf") # Get the BRDF for the material
brdf.set("color_tex", Color(.5, .5, .5)) # Set the BRDF color to red
l=findByType("Node") # Get all Node plugins
p=l[0].get("material") # Get the material of the first node
brdf=p.get("brdf") # Get the BRDF for the material
brdf.set("color_tex", Color(.5, .5, .5)) # Set the BRDF color to red
p=l[0].get("material") # Get the material of the first node
So basic I know!
Comment