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

    Topics

    • S

      Sketchup Make Penrose Triangle in 3D

      Watching Ignoring Scheduled Pinned Locked Moved Gallery
      7
      0 Votes
      7 Posts
      2k Views
      S
      arf ! understand till the water fall on the watermill...
    • S

      [Plugin] Component Libraries Loader

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      13
      0 Votes
      13 Posts
      11k Views
      G
      @cadfather said: yes, i posted the code so you'd be sure of the one i used. notice i took out the '../' from the 2 folders paths (start of script) - which made the script look in the directory above to the comps folder. (so it only works on su8) if you put the folders in the same directory as the script it works. at least it does for me (check the case matches too) need to look more into to see why it doesn't when you change the path to full (ie. "c/Program Files/SketchUp...etc etc) OK now i understand it works for me also muchas gracias i shall try to change the path too...
    • S

      Load an object and attached it to the pointer

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      620 Views
      S
      And it work ! Thank y'all for your help...
    • S

      [help]Group component instances

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      193 Views
      M
      In addition to TIG's info, you should move all the one-time code outside the loop. model = Sketchup.active_model entities = model.active_entities path = Sketchup.find_support_file "mymodel.skp" ,"Components/" . . . I also heartily recommend that you use four-space indentation in spite of the fact that two spaces is a Ruby convention. Four is much more readable which is why it is mandatory in Python, convention in C++, Java, JavaScript, ... (every language I know, except Ruby). New languages are always a PITA. Fortunately, quite a small subset of Ruby is all you really need to create SketchUp plugins.
    • 1 / 1