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

    hazyscl

    @hazyscl

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    hazyscl Unfollow Follow
    registered-users

    Latest posts made by hazyscl

    • RE: How do i set ShadowTime ?

      Hi Jim,

      Thanks loads for your tip!! πŸ‘
      I'll go try it out straight away πŸ˜›

      I'll be back... πŸŽ‰

      posted in Developers' Forum
      H
      hazyscl
    • How do i set ShadowTime ?

      Hi !

      I'm currently working in a research department in a architect-engineer group in Paris, and we regularly need to export shade views of the studied buildings at three specific dates and three specific times for those dates.
      I've written this little test code for exporting shade views, but i don't seem to manage changing the shade time....
      would like some help if anyone has a hint πŸ˜‰

      thanks !
      Lydia

      require 'sketchup.rb'

      #=============================================================================

      def exportShadeView

      model = Sketchup.active_model
      view = model.active_view
      title = model.title
      

      Sketchup.active_model.shadow_info["ShadowTime"]="Thu Mar 21 14:00:00 Paris, Madrid 2002"
      if (value)
      UI.messagebox value
      else
      UI.messagebox "Failure"
      end

      filename = title + "_21mars_10h.jpg"
      status = view.write_image filename, 5000, 4000
      

      if (status)
      UI.messagebox status
      else
      UI.messagebox "Failure"
      end

      end

      #=============================================================================
      #=============================================================================

      Add a menu to export shade views

      if( not $shadeview_loaded )
      shadeview_menu = UI.menu("File")
      shadeview_menu.add_item("Shadow Export") { exportShadeView }
      $shadeview_loaded = true
      end

      posted in Developers' Forum
      H
      hazyscl