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"
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement