Everything related to SDK.
#367108
Trying to assign r2 values in a layer. Found the function setFresnelCustom but I get a script error when trying to use it.

My code is

# Add new layer to material.
layer = material1.addLayer();
# Add new BSDF to layer.
bsdf = layer.addBSDF();
#set r2 values
bsdf.setFresnelCustom(75.00, 40.00, True );

but I get the error:

AttributeError: 'Cbsdf' object has no attribute 'setFresnelCustom'

What is the correct way to set r2 values?
Sketchup 2026 Released

Considering how long a version for Sketchup 2025 t[…]

Greetings, One of my users with Sketchup 2025 (25[…]

Maxwell Rhino 5.2.6.8 plugin with macOS Tahoe 26

Good morning everyone, I’d like to know if t[…]

Help with swimming pool water

I've had closer look at the pool image above. I[…]