Changing mental ray sampling mode though Maxscript in 2014

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey everyone,
I've been working on a custom UI to set mental ray settings and have run in to a possible bug in 2014. (If it's just me missing something though that's ok too!) 🙂
When trying to change the 3 sampling mode dropdownlist in the render settings, it's not letting me switch to one of them.
In the help it says that it depends on 2 switches that test either true or false.
.UnifiedEnable and .ScanlineEnable
Help file: mental ray maxscript parameters (Under "Samples per Pixel" and "Scanline")
However, when I try so set the .ScanlineEnable to true it never seems to do so.
It returns true if I do it manually int the listener, but when it test it again right after it's set to false again and thus it doesn't update the dropdownlist in the render settings.
If anyone could confirm this is indeed a bug or correct my workflow, any help is much appreciated.
mr = renderers.current fn setUnified = ( mr.UnifiedEnable = true mr.ScanlineEnable = false ) fn setClassic = ( mr.UnifiedEnable = false mr.ScanlineEnable = false ) fn setScanline = ( mr.UnifiedEnable = false mr.ScanlineEnable = true ) case ddl_samplemode.selection of ( 1: setUnified() 2: setClassic() 3: setScanline() 4: setClassic() )
M.