Notifications
Clear all

[Closed] VRaySun pop up message problem

Hi All,
I have a batch script to set scene lighting configuration.
All works fine with other renderers but i have a annoying problem with VRay.
When i create the daylight system in VRay i cannot avoid a pop up windows that say:
V-Ray Sun “Would you like to automatically add a VRaySky environment map?”
And this block my batch script to be AFK (specially with more than one max scene).

any idea?

These are the script lines where pop up window appears


setVRaySilentMode() -- try this to avoid it
useEnvironmentMap = true
environmentMap = VRaySky () 
sun = VRaySun
dayLightSystem = DaylightSystemFactory2.Create sunClass:sun -- pop up window appears here

3 Replies

I did not think on that!
Thanks!

It runs smoothly.

Just for fun. My Operating System is in Spanish so
UIAccessor.PressButtonByName hwnd "&Yes"
doesnt work.

if have to use this ugly version of that:
UIAccessor.PressButtonByName hwnd "&Sí"
So if somebody have problems with "&Yes" buttons in pop Up  windows may can use something like this:
if not (UIAccessor.PressButtonByName hwnd "&Yes") do
   UIAccessor.PressButtonByName hwnd "&Sí"
or more universal:
if not (UIAccessor.PressButtonByName hwnd "&Yes") do
    UIAccessor.PressDefaultButton()

or simply:

UIAccessor.PressDefaultButton()