render without shadows

render without shadows

Anonymous
Not applicable
692 Views
3 Replies
Message 1 of 4

render without shadows

Anonymous
Not applicable

Hi,

 

I'm trying to render without shadow from maxscript unsuccessfully. Could someone give me a hand?

 

Thank you!

 

Details

--------

This is the command that I'm using:

 

render camera:obj outputfile:output_file_i vbf:False shadows:False quiet:False

 

obj is the camera that I want

output_file_i is an string with the output filename

 

The problem is that none of the other arguments is taking effect. I still get shadows of the objects and I got an output render dialog with the final result.

0 Likes
693 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
It's hard to tell without some more info, but you have misspelled vfb (instead of vbf).
Also keep in mind that shadows option is only effective with Default scanline renderer (there's no info what are you using).
Hope it helps
0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi @Anonymous ,

 

thanks for catching the miss-spelling error.

 

I guess that I'm using all the default parameters but I don't know the details. I'm trying to mimic the checkbox that appears on the render dialog>Renderer>Shadows & Displacement> Enable. Do you know how to mimic this behavior?

 

BTW, How did you figure it out that "shadows" only works with scanline renderer? I can't find detail information in the online MAXScript documentation.

0 Likes
Message 4 of 4

Anonymous
Not applicable

Hi,

 

I suppose you're using Mental Ray than. In that case you'd need to change it in renderer. Try this

renderers.current.ShadowsEnable = false
render output:x vfb:false

 You might want to store this value prior to render to restore it later, but it's up to you.


@Anonymous wrote:

How did you figure it out that "shadows" only works with scanline renderer?


Well the header before those parameters drew me to this conclusion. (The following properties are available if the standard scanline renderer is being used)

0 Likes