Hi,
I have a strange issue I have a hard time grasping regarding the following code:
mat_prim = rep.get.prims(
path_pattern="/Replicator/Looks/OmniPBR",
path_pattern_exclusion="/Replicator/Looks/OmniPBR/Shader")
with mat_prim:
rep.modify.attribute(
"enable_emission", True)
rep.modify.attribute(
"enable_opacity", True)
To modify the emission works fine but when I try to modify the opacity I get an error saying OmniGraph Error: Attribute 'inputs:enable_opacity' could not be found for prim at /Replicator/Looks/OmniPBR/Shader.
But inside the property tab in the editor for the OmniPBR Material I am able to change both the emission and opacity of the object with no problem. The emission is also changed according to what I write in the script. So there is an issue specific to enable_opacity
that I do not have with enable_emission
.
Am I doing something wrong or what is the cause for this problem?