Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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




  • #2
    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/sc...4_10-32-06.gif
    Martin Minev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Worked perfect!
      Thank you!

      Comment

      Working...
      X