IsaacSim 5.1 and 6.0
Work Flow:
shader_prim = rep.get.prim_at_path("/World/Looks/Aluminum_Polished/Shader")
def rand_colors():
lower_bound = (0.0, 0.0, 0.4)
upper_bound = (0.2, 0.3, 1.0)
with shader_prim:
rep.modify.attribute("inputs:diffuse_tint", rep.distribution.uniform(lower_bound,upper_bound))
-
The resulting Omnigraph Write node that gets created will error saying that inputs:diffuse_tint does not work.
-
Open the shader and change the value of diffuse tint.
-
Omnigraph no longer complains and the color changes as expected.
This is a similar issue that we see in the Variant editor where it fails to add properties from materials unless the user has “touched” or modified them in the interface.