• Material Proxies, specifically EntityRandom
    0 replies, posted
Yo. I'm trying to get a random color set in my .vmt, using Material Proxies. I can set the color manually, or even randomly in an animated fashion using Sine or Noise, but I just want to set it once, randomly per Entity. This *should* be exactly what EntityRandom does, but I can't seem to get it to do anything. Here's the relevant part of the .vmt : [CODE] $green "[0 1 0]" $red "[1 0 0]" $randomised "0" $zerovar "0.5" "Proxies" { "EntityRandom" { "scale" "100" "resultVar" "$randomised" } LessOrEqual { lessEqualVar $green greaterVar $red srcVar1 $randomised //if this is greater srcVar2 $zerovar //than this resultVar $color //it will be black } } [/CODE] It seems like EntityRandom just isn't setting the '$randomised' variable. I don't know if it's because my scale is off? I'm also not sure if there's any way to get the current value of a material proxy variable to show up in the console. Does anyone have any experience with Material Proxies? Thanks for the help.
Sorry, you need to Log In to post a reply to this thread.