Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
đź«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
Sketchup 7 setting opacity with ruby?
-
Hello,
The API doc says:
Color.alpha= is only for SketchUp 8.0 M1+
Any other way to set opacity in Sketchup 7 with ruby?
This does also not work:
color_from_rgba = Sketchup;;Color.new(material.color.red, material.color.green, material.color.blue, 128) material.color = color_from_rgba -
Oops, just noticed:
material.alpha = 0.5 -
For materials it's
Material.alpha. If you are drawing polygons to the viewport usingView.drawthen you needColor.alpha.The Secrets of SketchUp’s Materials - There is a section there "Material.alpha vs Color.alpha"
Advertisement