I'm guessing the issue here is that Layout doesn't display hidden lines in vector mode (I wish it did!). Correct Gaieus? Ideally one wouldn't have to explode a model, thereby losing the capacity to remodel it in Sketchup.
Latest posts made by walzo
-
RE: Does layout not support hidden lines?
-
RE: Export image by layer
Update: Seems as though the name of the action 'RenderbyLayer' was the problem. I switched it and it worked fine! I wonder why.
A tip for anyone else trying to script Podium renders:
The Podium Rendering Manager gives an error 'File not found' if it receives more than one request per second. This seems to result from its naming convention, which uses a time code. I inserted a the command 'sleep(1)' into the script for each layer, pausing it for one second and preventing the error. Maybe there's a better way to do this, but it worked! -
RE: Export image by layer
Thank you so much Jim! Much appreciated.
I threw that code in a script file, along with a menu item definition, but for some reason it's not executing anything. The menu item shows up, but it doesn't run anything. Here's the whole .rb file:
require 'sketchup.rb' def RenderbyLayer # Set all Layers not visible for layer in Sketchup.active_model.layers layer.visible = false end # Iterate Layers, show next Layer, then # either create a Scene, or export and image. for layer in Sketchup.active_model.layers layer.visible = true Podium;;render layer.visible = false end end unless file_loaded?("renderbylayer.rb") file_loaded("renderbylayer.rb") add_separator_to_menu("File") UI.menu("File").add_item("Render by Layer using Podium") { RenderbyLayer } end
I have Podium v2 loaded, and I've used the Podium::render command successfully before, but not this time round. Any more suggestions? If you have a moment...
Thanks, O
-
Export image by layer
Hi there,
I'm looking to write a script that will run an export image (or Podium render) command with one layer visible at a time. Any hints? I imagine it needs to be some kind of 'for each layer' loop:
-Make current layer visible
-Hide others
-Render image
-Move on to the next layerI know the export image commands pretty well, but the rest I'm still working out.
I understand basic coding ideas, though I'm not too well versed in Ruby.Any help would be appreciated.
Thanks,