Next question from dagon, but first "hi"!
Hmm, I looked through the help doc and didn't find the ao string options. I expected to find them in
Scene Description Language > Scene Entities > Options
Now, I realize that the SP1 update did not come with a new doc set, so it is behind the release of mental ray that came with it.
So, I am going to try to test the new string options interface. See Dynamic Attributes in the Maya Help section.
I'm struggling with it at first but these are the options I'm going to try.
"ambient occlusion" on|off
"ambient occlusion rays" nrays (an integer)
"ambient occlusion cache" on|off
"ambient occlusion cache density" density (a scalar, ie single floating point number)
"ambient occlusion cache points" num (an integer)
Ahh, they work only if you enter them in the script editor, as opposed to manually in the miDefaultOptions node in the AE.
If you have only the "rast motion factor" string option in slot 0, the way SP1 comes by default, then you could directly copy and paste this into the script editor:
- Code: Select all
setAttr -type "string" miDefaultOptions.stringOptions[1].name "ambient occlusion";
setAttr -type "string" miDefaultOptions.stringOptions[1].type "boolean";
setAttr -type "string" miDefaultOptions.stringOptions[1].value "on";
setAttr -type "string" miDefaultOptions.stringOptions[2].name "ambient occlusion rays";
setAttr -type "string" miDefaultOptions.stringOptions[2].type "integer";
setAttr -type "string" miDefaultOptions.stringOptions[2].value "256";
setAttr -type "string" miDefaultOptions.stringOptions[3].name "ambient occlusion cache";
setAttr -type "string" miDefaultOptions.stringOptions[3].type "boolean";
setAttr -type "string" miDefaultOptions.stringOptions[3].value "on";
setAttr -type "string" miDefaultOptions.stringOptions[4].name "ambient occlusion cache density";
setAttr -type "string" miDefaultOptions.stringOptions[4].type "float";
setAttr -type "string" miDefaultOptions.stringOptions[4].value "1.0";
setAttr -type "string" miDefaultOptions.stringOptions[5].name "ambient occlusion cache points";
setAttr -type "string" miDefaultOptions.stringOptions[5].type "integer";
setAttr -type "string" miDefaultOptions.stringOptions[5].value "64";
If you're adding irradiance particles and importons and any other string options, you'll have to watch those slot numbers, ie the number n you give to miDefaultOptions.stringOptions[n]