Dome light (Cast shadows) don't work with maxscript

Hi all, I having a weird problem,
I’m trying to turn on and off ‘Cast shadows’ in Vray Dome Light via MaxScript and it don’t work…

When I’m turn on and off ‘Cast shadows’ from the menu it’s working O.K. and it’s reflected well on Listener but when I type the same code exactly
in the Listener it don’t work and only return true or false…
Why it so weird? Because when I try to turn on and off other properties with the exact same method it’s working perfectly…

Any suggestion?

Thanks :slight_smile:

Hello,

There is a common node property named castShadows that overlaps the lights property. You should use the following command and it should work.
$.baseObject.castShadows = off

http://ftp.chaosgroup.com/support/screenshots/2019-06-04\_10-32-06.gif

Worked perfect!
Thank you!