Pymxs code for enabling the checkbox for Max Subdivs when using Bucket image sampler?

As the title says, I’m wondering what the code is to enable this checkbox. I found this website which lists out all the classes in the struct but I can’t find one for that specific option https://www.scriptspot.com/forums/3ds-max/general-scripting/how-to-access-vray-render-settings

I tried both
.adaptiveSubdivision_rand : boolean
.adaptiveSubdivision_showSamples : boolean​

but it didn’t work. Any ideas?

Hello,

The parameter for this is
twoLevel_adaptiveEnable

Best regards,
Yavor

That worked great thank you, I think I was looking at an outdated list.

Sorry another question I was wondering if you’d know, how to add render elements through Pymxs?
I’ve found with MaxPlus to use MaxPlus.RenderSettings.GetCurrentRenderElementManager() but unsure how to convert it for Pymxs and VRay

Hi, sorry for the delayed reply.

There’s nothing V-Ray specific with render elements so standard Max ways work. How to access them through pymxs - not sure, but if you don’t find an alternative - you could execute MAXScript commands through pymxs with pymxs.runtime.execute :slight_smile: