Altering bitmap output
This is my first attempt at scripting, so please excuse any ignorance.
I have a scene populated with silhouettes of people on plane objects, all with a look at constraint, i.e. billboard people.
The silhouettes are defined through a VRay material, with a .png as an opacity map.
I want to be able to adjust the transparency of the billboards by altering the RGB output level in the output setting for that bitmap. I’ve come up with the following script:
for obj in (selection as array) where classof obj == plane do ( $.material.texmap_opacity.output.rgb_level = 0.8 )
However it only works when I have one object selected. If I have two or more selected I get the message, “—Unknown property: “material” in $selection”
Where am I going wrong?
Also, I was hoping that, once I got this script right I would be able to alter it to uniformly change the diffuse colour of each material.