iflamp.type=='HEMI':#HEMI never has any shadow attribute
file.write('\tshadowless\n')
eliflamp.shadow_method=='NOSHADOW':
file.write('\tshadowless\n')
iflamp.type!='SUN'andlamp.type!='AREA':#Sun shouldn't be attenuated. and area lights have no falloff attribute so they are put to type 2 attenuation a little higher above.
iflamp.type!='SUN'andlamp.type!='AREA'andlamp.type!='HEMI':#Sun shouldn't be attenuated. Hemi and area lights have no falloff attribute so they are put to type 2 attenuation a little higher above.