[MAXScript] check if VRay is installed

Since I’m developing a small script, I wanted to know whether it is possible with MAXScript to check if there’s a copy of VRay running or not.

Any suggestions?

Check the renderers.current or see if you can find a file used by vray.

findstring renderers.current "V-Ray"

If true, VRay is the current render.
Expand on the concept to check through all the renderers, just to know if it’s installed.

Lele

seems not to work in some way :?

if findstring (rendererclass.classes as string) "v_ray" != undefined then messagebox "success" else messagebox "bad bad bad"

regards, Michael

edit:

mystring = "" as stringstream
format "Renderers installed:\n\n" to:mystring
for i in rendererclass.classes do
(
format "%\n" i to:mystring
)
messagebox mystring as string

to show the handling better

http://forums.cgsociety.org/showthread.php?f=98&t=481656

Answer to this from the master Bobo

That’s what was posted here…