Hello everybody. I’m digging the codes of @thomthom’s Protected Frames plugin to edit a small parameter. I’ve hit just a little snag as a result of I’ve come to the purpose the place I don’t know the place to look.
Mainly, I need to alter the transparency of the protected body bars and make them opaque. I nonetheless get distracted by the semi seen elements which can be coated by the bars and was questioning if there was a manner of constructing the bars darker or opaque? Thanks.
Sketchup.active_model.rendering_options['BandColor'] = Sketchup::Shade.new(128, 0, 0, 0.8)
2 Likes
Hey Thomas. Thanks for the trace. Sadly, I’m having hassle discovering that actual line. I’ve regarded in all of the rb recordsdata right here –
however the one strains which have something much like “Sketchup.active_model” are these –
def self.create_camera_window
#places ‘self.create_camera_window’
view = Sketchup.active_model.active_view
digital camera = view.digital camera
def self.width_changed(worth)
#places “width_changed( #{worth} )”
view = Sketchup.active_model.active_view
if view.digital camera.aspect_ratio == 0.0
ratio = view.vpheight.to_f / view.vpwidth.to_f
else
ratio = 1.0 / view.digital camera.aspect_ratio
finish
@window[:txt_height].worth = ( worth.to_i * ratio ).to_i
nil
finish
May you additionally say the place that line is, please? Or do I’ve so as to add it myself? (in that case the place?) Thanks a bunch upfront.
Did you strive getting into ThomThom’s snippet within the Ruby Console?
1 Like
Aha! Now it labored. Thanks loads Dave. Didn’t take into consideration placing the code within the Console. Is there any manner of “saving” this parameter for the aforementioned plugin, in order that I don’t need to copy-paste that line each time?
It was only a guess on my half since ThomThom didn’t inform you the place to place it.
Is there any manner of “saving” this parameter for the aforementioned plugin, in order that I don’t need to copy-paste that line each time?
Perhaps ThomThom can reply that.
I count on you could possibly flip it into just a little plugin and run it. In your case it appears it may be good to simply set the opacity that manner within the extension.
1 Like
Thanks once more.
I had a sudden concept from this. Perhaps if ThomThom decides to “refresh” the plugin a while sooner or later, he might add a setting to regulate the transparency of the protected bars as effectively? The color itself, I consider, will not be necessary, because it doesn’t present up in exports. However a transparency controller with 25% increments could be good. Simply an concept although.
1 Like
Are you able to file this suggestion within the repository’s challenge tracker please? GitHub – SketchUp/sketchup-safe-frames
I’m sorry ThomThom, I’ve hassle following you. I’ve simply signed up on that web site. Is that this the proper place to file the concept? My suggestion will not be actually an “challenge”, is it?
Sure it’s. Thomas will tag it with the proper type of label (“Bug”, “Enhancement”, “Query”, and so on.)
You’ll be able to all the time prefix the difficulty title with “[FR]
”.
2 Likes
Okay, thanks Dan. It appears I’ve misunderstood the context the phrase “challenge” was utilized in. I assumed it meant “drawback” or “mistake” or “error” or something comparable. If considered “an necessary subject for debate or dialogue” like Google says, it is smart.
Yea, within the context of GitHub (or BitBucket, or every other tracker system) an “challenge” is taken into account a “ticket”, “merchandise” – one thing generic which is then later categorised and prioritised.
Hiya everybody,
I discovered this thread would possibly maintain the answer to a complicated digital camera challenge I’ve run into since upgrading to SKP 2017.
My exported pictures are jumbled with gray fragmented bars.
If I might simply flip off their opacity, that may be a doable work-around.
Is somebody in a position to counsel what code to stick into the terminal? Thomthom possibly are you able to replace the snippet to “flip off” the bars comletely?
Thanks!
1 Like
Hiya. It appears your challenge is extra linked to your graphic card, reasonably than the Superior Digicam Device. Is SketchUp utilizing your 12 GB (wow!) TitanX card?
And to place it with opacity what could be the answer
The black protected frames was a regression bug in SU2017M0. It’s may be fastened in SU2017M3 (undecided). However not less than in SU2018M0.
I discovered this publish by looking out, however can anybody inform me how the digital camera’s grid is ready within the first picture? I don’t suppose it’s a watermark. It’s an previous thread, however should you’ve seen it, I’d admire a solution.