[SOLVED] Detecting if System has Iray Available
dyodyo
Posts: 42
Via a script, is there a way of detecting if the current system has Iray available to use / is the currently set renderer?
I found this thread,which seems to have a solution, but was wondering if there was another way.
Thanks,
Post edited by dyodyo on
Comments
: http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/rendering/render_settings_find_property/start (among other samples in the http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start#rendering section) contains code that looks for a renderer by classname and conditionally does something (or not) based on it being found (or not). You don't need all of the code in the sample... but it does show how to access/use the pertinent APIs.
Thanks!! I put this code together to detect if Iray is available / is the selected renderer (not sure if it's up to the standards of the forum, but does the job ;) ):
edit: every time I try to format the code, it just turns into a new variation of crazy ...
Many thanks Chohole and Richard :)
Use the Insert Code Snippet button, next to the Image button above the text box. Edit: apparently these are not available if you are using a mobile device.