User avatar
By stir
#385962
Hey
I just started testing out some maxscripting towards maxwell.
Right now i am just trying some basic stuff.


Renderers.current = MaxwellRenderer()

vrt=renderers.current

showProperties vrt


The show properties gives me a list of properties i now can change.
so i tried a couple.


vrt.gsSamplingLevel = 18
vrt.gsRenderTime = 345
vrt.gsGenerateMXIOutput = true


I then get feedback in the listener:

18
345
true


So it all looks good until i check in the UI. The sampler still says 12 as default. MXI is not toggeled on and the timer is also default 30.
Is this a bug, or am i using the commands wrong?

Thanks for anyhelp.

-Mats
User avatar
By Mihnea Balta
#385963
If you have the render settings window open, it will not update when you set the values from maxscript, because there's no event mechanism to allow this. What's worse, closing the window after that will save all the values from the UI to the render settings object, so all the changes you did from maxscript will be overwritten. The solution is to close that window before running your script.
Rhinoceros 6 support

I just installed the new maxwell_rhino_v4.2.6.3_WI[…]

is Maxwell Render abandoned?

"You can expect good news in a few weeks. Be[…]

Good day! We have just released a new version of […]

Hi there, after a texture tag has been assigned to[…]