MAXScript LC Passes? Find numthreads in pc?

Hi all

I’m setting the LC to 12 using this:
rc.lightcache_numPasses=12

But, is there a way to see how many cores the pc has so I can set LC to that instead?

In V-Ray 3.0, there is no need to do that; the number of passes option is ignored.

In older versions of V-Ray, setting this to 0 caused V-Ray to use the same number of passes as the number of rendering threads.

Best regards,
Vlado

This script is for VRay 2
I’ll set it to 0 then

Just for the sake of interest, in VRay 3, will it ignore that part of my script or will it return an error?

The parameter is just ignored; there won’t be an error.

Best regards,
Vlado