renderers.current.globalSamplerEnabled = true -- Sets the GSS checkbox to on.then if I go and manually turn it off in the UI and ask max...
renderers.current.globalSamplerEnabled == falseI get false... in other words... It is only reading back to me the last value I set to the checkbox through maxscript.
Replies
a = true
a == false
true == false
false
http://docs.autodesk.com/3DSMAX/15/ENU/MAXScript-Help/files/GUID-30AF1E53-5A69-402D-84D6-4D6ECCDD6D20.htm
I hate the thing with a passion and it knows it. It uses every chance it can to ruin my day. Like rendering a muti-frame job from batch render to a single frame if single is checked on in the render dialog window. It's a completely unrelated setting in an completely separate window that should have no bearing on the batch render. It pulls the right range from batch, but just renders it all to a single frame... WTF!?
I had to write a script that forces it to range and closes the render dialog window, anytime I pull up the batch render dialog.
Don't get me started on the way it sets the file type for render output...
Mark - lol I have been feeling that way about the RTT dialog. The most complex thing I have touched in maxscript so far... I had no idea what I was getting into when I started this script.
RTT works the same way with having to close, change the settings, and then reopen it.
Thank you so much guys!
when I check the renderers.current it returns:
I can't seem to find the name of the Default Scanline to compare it to the renderers.current.
I think I was doing this in one of my baking scripts that I seemed to have lost... but it worked pretty good.
monster - I will have to give that a try. I hadn't thought of saving the current render like that. Pretty cool!
http://www.polycount.com/forum/showthread.php?t=104541&page=2
be.bitmap is the bitmap last rendered in the render to texture.
I have to render to texture twice before the be.bitmap will update. Is there anything wrong with this?
newbitmap = copy be.bitmap
also you wouldnt have to define the new bitmap before that
but you helped me condense my code
Here is the original code with my notes added.
I clearly still have a lot to learn.