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

    Topics

    • T

      Yet another SavePanel question

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      243 Views
      thomthomT
      Test the return value. The manual has been wrong before. It might be false or en empty string.
    • T

      Setting file types in the savepanel

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      21
      0 Votes
      21 Posts
      2k Views
      T
      Sorry to drudge up old news, but this is an embarrassingly old issue, be nice to have a filter option in the API by now. Here was my solution because I didn't like the fact that it could possibly overwrite a file accidentally using TIGs approach (untitled != untitled.txt for example). Anyhow it can be a burden to hit save twice, but I'd rather do that 100x then accidentally save over something important. Where: EXT = "txt" default_dir = "c;\\temp\\" default_file = "untitled" The following while loop: name_valid = false while name_valid == false path_to_save_to = UI.savepanel("Save Code File", default_dir, default_file) #path_to_save_to = path_to_save_to.tr("\\","/") # This maybe required. fileext = File.extname(path_to_save_to) # filename with prefix stripped filebase = File.basename(path_to_save_to, ".#{EXT}") #puts fileext.inspect if fileext == "" || fileext == nil default_file = filebase + ".#{EXT}" UI.messagebox "Oops! Including the file extension '#{EXT}'\nThis is an embarrassing workaround...\nPlease hit save again." #puts default_file.inspect else filename = filebase + ".#{EXT}" path_to_save_to = File.dirname(path_to_save_to) + "\\" + filename name_valid = true end end
    • T

      SketchUp SDK Scrambler - Problem with paths?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      319 Views
      T
      Scott, You're a lifesaver! Worked like a charm. Just needed to get the plugins folder. Got it. Thanks! Tali
    • T

      Iterating over the faces of a component - without exploding

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      30
      0 Votes
      30 Posts
      962 Views
      T
      AdamB, No, the calculation that I'm doing is in the reversed direction. I do not want to raytrace the whole model and see what I hit, I want to select a face (or a few faces) and say how much of it is lit. (i.e. out of the set of rays that should hit it, how many actually hit it first) This is working great, as already stated, for non-grouped/componented selections...
    • T

      Fumbling Towards Timezone Frenzy

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      347 Views
      T
      No problem, Chris. If you have any further questions about this - feel free to message me (or post here and message me so that I'll read it for sure )
    • T

      Directory browse dialog?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      206 Views
      No one has replied
    • T

      Embedding existing Sketchup dialogs in new ones

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      142 Views
      No one has replied
    • T

      Face-specific Shadow Info

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      325 Views
      T
      I see a lot of you are looking, but no one is answering. Can you please at least tell me if you think it can be done/seen examples/ something but don't know how or you simply don't think it's possible from within sketchup? Thanks, Tali
    • 1 / 1