light shadow control with script

1.

i made direct01 light

aftet that , i tested some with script

select $direct01
$.castshadows = on

but that did not work

2.i would like to change shadows map type with script

area shadow
vray shadow
advance ...

i would like to change map type with script, but i can't see that fucntion max help

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

Follow this


dLight = $direct01
dLight.baseObject.castShadows = on
dLight.shadowGenerator = shadowMap() 
dLight.shadowGenerator = raytraceShadow() 
dLight.shadowGenerator = Area_Shadows()
dLight.shadowGenerator = Adv__Ray_Traced()
dLight.shadowGenerator = VRayShadow()
dLight.shadowGenerator = VRayShadowMap()

bga

dussla's picture

wow thank you

always thank you
you are really really god ~

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.