sketchucation logo sketchucation
    • Login
    1. Home
    2. walzo
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    W
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Groups 1

    walzo

    @walzo

    10
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    walzo Unfollow Follow
    registered-users

    Latest posts made by walzo

    • RE: Does layout not support hidden lines?

      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.

      posted in LayOut Discussions
      W
      walzo
    • 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!

      posted in Developers' Forum
      W
      walzo
    • 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

      posted in Developers' Forum
      W
      walzo
    • 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 layer

      I 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,

      posted in Developers' Forum
      W
      walzo