Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

Assign a color to a material property (Solved)

$
0
0

How do I assign a color to a material property?  In this case I am looking to assign Emission Color.

I have gotten the property found.

var prop2 = mat.findPropertyByLabel( "Emission Color" );

I also can succesfully set the texture.

prop2.setMap( tex );

When I did this for the Bump Map I was able to set the numeric property.

prop2.setDoubleValue(1.0);

 

I still can't figure out how to read or write to the color of the property.

I have dug through forums, docs, and samples and still havent found the magic.

 

What is the getter/setter for the color values on the Emission Color property (or other color properties on a material)?


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>