sketchucation logo sketchucation
    • Login
    1. Home
    2. TomPendergrass
    3. Topics
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Groups 1

    Topics

    • TomPendergrassT

      Close a WebDialog, THEN execute ruby code?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      10k Views
      M
      I did some workaround on this behavior by adding an event listener on the dialog box via JS. This way the callback will be triggered. window.addEventListener("beforeunload", function (e) { sketchup.focus_dialog() }, false); @dlg.add_action_callback('focus_dialog') do |ac| @dlg.bring_to_front end
    • TomPendergrassT

      Get latLong of origin?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      967 Views
      TomPendergrassT
      Thank you for your help! Turns out the camera that the photos were taken off of had some weird GPS offset, which is why my photos were imported yet placed kilometers away. I solved my problem by using a 'reference point'. I have the user import one photo and place that photo where they believe it was taken. I use that photo's lat and long to modify the rest of the photos that were imported. Success
    • 1 / 1