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.draw
then you needColor.alpha
.The Secrets of SketchUp’s Materials - There is a section there "Material.alpha vs Color.alpha"
Advertisement