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

    Posts

    Recent Best Controversial
    • RE: Atmospheric approach

      Crazy people - great concepts and renderings...

      posted in Gallery
      F
      faust07
    • RE: Julia Eneroth's Viewport Resizer / SketchUp 2023

      If that helps: a plugin for easily exporting SketchUp images, as shown in the viewport but with free input of height, width, format and compression.
      Originally modified for a smooth scene animation to coincide with the Skindigo AnimationExport (Indigo Render Animation).
      Here reduced to a SketchUp single image output with input of image parameters.
      Transfer the code to an rb file called Single_Image_Export.rb and copy it to the plugin folder of the respective SUp version (tested up to SUp2022).
      Restart SketchUp ....

      # Formerly Created by Dale Martens AKA 'Whaat' as "Smoothstep Animation"
      # Released 6 Oct 2008 As-is and without warranty of any kind.
      # Originally modified by faust07 for a smooth scene animation to coincide with the Skindigo AnimationExport (Indigo Render Animation).
      # Here reduced to a SketchUp single image export with input of image parameters.
      # Modified by faust07 (AT) 2024-03-25
      
      require 'sketchup.rb'
      
      if( not file_loaded?("Single_Image_Export.rb") )
      	menu=UI.menu("Plugins")
      	menu.add_separator
      	menu.add_item("Export Single Image") {(SingleImageExport.new(true))}
      end
      
      file_loaded("Single_Image_Export.rb")
      
      class SingleImageExport
      
      def initialize(export)   # export should be true or false
      
      if export			# Inputs
      	prompts = ["Width","Height","Format","Compression"]  
      	values = ["1920","1080","JPG","1.0"]
      	format_choices = "JPG|PNG"
      	enums = [nil,nil,format_choices,nil]
      	results = UI.inputbox(prompts,values,enums,"Export Options")
      	if results
      		@width = results[0].to_i
      		@height = results[1].to_i
      		@format = results[2]
      		@comp = results[3].to_f
      		if @comp < 0.1 or @comp > 1.0
      			UI.messagebox("Compression must be between 0.1 and 1.0")
      			@export = false
      			return
      		end
      		def_filename = "SU."+@format.downcase
      		path = UI.savepanel "Export Frame","",def_filename
      		if path
      			@export_path = File.dirname(path)
      			@filename = File.basename(path,".*")   # remove the file extension
      		end
      	end
      end
      
      # single image export
      @image_path = File.join(@export_path,@filename + ".#{@format.downcase}")
      Sketchup.set_status_text("Exporting Frame to #{@image_path}")
      Sketchup.active_model.active_view.write_image(@image_path, @width, @height, true, @comp)
      
      end 	# end def initialize(export) 
      
      end # class
      
      posted in Extensions & Applications Discussions
      F
      faust07
    • RE: Atmospheric approach

      Your penultimate picture reminds me of a landscape in my home country.
      This is what it could look like there in 50 years...
      (Bastion in Saxon Switzerland National Park)
      By crazy people I mean the people who drive their cars onto rocks like this...
      (Image source: misjatravel.pl)
      ZW_saksonia_bastei_2.jpg

      posted in Gallery
      F
      faust07
    • RE: Julia Eneroth's Viewport Resizer / SketchUp 2023

      I'm glad this helps.
      I find it a shame that the SkerchUp programmers have not yet considered it necessary to implement a precisely definable image export, even though the basic functions are available in Rubi.
      Regarding school: "Hochschule für Architektur- und Bauwesen Weimar" today "Bauhaus Universität" - we punched out punched cards and handed them over to the computer center (short time after Konrad Zuse...) 😉
      I learned most of Rubi from AntonS for scripting in MSPhysics and from customizing simple plugins for my own purposes. It's enough for small things...

      posted in Extensions & Applications Discussions
      F
      faust07
    • RE: A little Fun Exercise

      Very well done 👌

      posted in Gallery
      F
      faust07
    • 1 / 1