Page 1 of 1

Maxscript UI feedback

Posted: Wed Mar 18, 2015 6:33 pm
by stir
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

Re: Maxscript UI feedback

Posted: Wed Mar 18, 2015 7:33 pm
by Mihnea Balta
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.

Re: Maxscript UI feedback

Posted: Thu Mar 19, 2015 10:35 am
by stir
aaaaah, haha ok.
good to know! Thanks :D