Max - can I query vray license availability?


I have an automated tool that allows my animators to submit to the farm, and we are using Vray as our renderer. In order to make settings changes, Vray requires a temporary use of a UI license. Unfortunately sometimes we run out, and the settings do not get changed, creating a bad render.

Is there any way to query license availability? I didn’t see anything anywhere, but I may have overlooked it. I tried to create a work around by querying a settings change before submission, but it appears to be giving me a false positive. The script should throw a notice and stop if a check box isn’t on that my tool turns on during execution. None of the animators have seen this notice, yet I’m still getting bad renders.