View.write_image shows dotted line border
-
In what versions of SU do you observe this?
-
I've only encountered this in sketchup make 2017 on windows 10, Driven tested it on a mac, same issue.
-
Have you tested on older versions? Do you think this is a regression?
I wonder if it's related to a regression where the aspect ratio overlay bars are drawn as solid black in SU2017. -
I wrote the panorama plugin in 2014, and never had this problem.
Ok, I've just tested this.
model=Sketchup.active_model view=model.active_view cam=view.camera cam.aspect_ratio=1
Yes, in SU2016 the bars were transparent. in SU2017, the bars are black. That's a regression? I don't remember the bars ever being black.
I fail to see why this change would interfere with view.write_image
Has anyone else reported this problem when exporting images? maybe with other aspect ratio? -
The bars were by default a transparent black. The color can actually be adjusted. But in SU2017 the transparency is ignored. (I haven't actually tried to see if it picks up custom colors...)
-
the color can be adjusted? is there a command to do that? I can try and see.
-
@rami_lpm said:
the color can be adjusted? is there a command to do that? I can try and see.
I think it is one of the RenderingOptions.
-
Jim is correct, I don't recall exactly what it is, but you find it if you inspect the available keys.
-
Sketchup.active_model.rendering_options["BandColor"] = (Sketchup;;Color.new(185,138,0,127))
this works in v16 but has no effect in v17 on my mac...
john
-
This is a cross post from our SketchUp Forum post
tl;dr - In addition to trying the work-arounds in this thread (only the resolution magic numbers worked) we discovered that turning off anti-aliasing eliminates the issue for any resolution - if you can accept the jaggies.
Hope that helps someone diagnose and fix the issue, or is a workaround for someone until the fix.
Advertisement