Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

MAXScript - Soft Shadows Precision

MAXScript - Soft Shadows Precision

Anonymous
Not applicable
400 Views
0 Replies
Message 1 of 1

MAXScript - Soft Shadows Precision

Anonymous
Not applicable

Hi all,

 

I'm trying to write a simple script which will automate the changing of a load of settings within a scene for rendering. The vast majority of it is fine but I'm having trouble with the "Soft Shadows Precision" setting in Mental Ray. 

 

I want to turn it off entirely, so I've put this:

 

mr.softshadowsprecision = 0.0

 

The reference page for this setting say this should happen...

 

"Note that the value is exposed to the User Interface as a drop-down list, but the MAXScript exposure allows arbitrary floating point values to be used. If the value assigned via MAXScript does not match any of the items on the drop-down list, the list will display its first entry (0.125), but the internal value will be used instead. For example, 1.0 will set the list to the entry 1, but 1.1 will set the list to 0.125, while the multiplier will be internally 1.1."

 

When I do this, the value is displayed as 0.125 as expected from the explanation above, but the internal value definitely isn't 0 or 0 isn't the value I need to turn it off? I know this because when I render there are poor quality soft shadows present, so it appears to be using the value of 0.125. 

 

One problem may be that the drop down list the reference page refers to doesn't have an "Off" value, I usually do this using the slider that sits under the rendered frame window so maybe I'm looking in the wrong place?

 

So basically I'm hoping to find out how I can turn soft shadows off entirely through script. 

 

Thanks,

 

Alex.

0 Likes
401 Views
0 Replies
Replies (0)