sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    In Need of a Plugin

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 6 Posters 1.9k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      Mael
      last edited by

      Posted this in the Wishlist forum as a potential feature request for a future release of SU but I'm hoping someone here can help me out faster.

      I need a plugin that allows me to select two endpoints of two different line segments and create a third point by combining the Y and Z coordinates of the first selected point with the X coordinate of the second selected point, creating a third point.

      For example, Point A lies at 2,2,2. Point B lies at 3,3,3. I select Point A, then Point B, and create Point C at 3,2,2.

      I spoke with a member of #ruby-lang about this and he said such a plugin would only be a few lines long but he doubted that anyone had written such a "trivial" plugin.

      Would anyone here be willing to take a stab at making this plugin for me? I asked a friend of mine who is a programmer to try it but he has no experience with ruby or SU. Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        http://forums.sketchucation.com/viewtopic.php?f=323&t=24019

        There you go. I have no clue what this could be used for, but I hope it helps you πŸ˜„

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • T Offline
          tfdesign
          last edited by

          Sounds interesting. How about a screenshot demo of what it could be used for, Mael?
          (I was thinking of the top of walls- can't remember the name of the type of feature though πŸ˜’ )

          My book "Let's SketchUp!" Download from here

          1 Reply Last reply Reply Quote 0
          • coulteriC Offline
            coulteri
            last edited by

            I need something similar: Imagine you have coordinates of points in space A[0,0,0] B[0,1,0] C[1,0,0] D[1,1,0] E[0,0,1] F[0,1,1] G[1,0,1] H[1,1,1]
            These 8 points are part of cube. Is it possible to write a script, that would be able to make boxes (not only cubes) from series of points that are written in excel table? I mean it should find lines, close them and create faces between them.
            Thanks.
            coulteri

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              Yes, easy done...
              You need two parts.
              Part one reads the data from a file - best from a .csv or .tsv file [comma or tab separated-variable format easily exported from Excel], reading .xls directly from Ruby is possible but not starightforward. Then turn it into float values in an array.
              Part two takes the read-in array of numerical data and makes the faces as desired.

              You can easily test the second part by manually typing the array and doing a looped operation on it to make the faces it defines... Be sure to get the order of the 4 points coplanar and in order so that the face is facing the right way up.

              There are several examples of scripts reading data files so use one of those to make the data reading part...

              TIG

              1 Reply Last reply Reply Quote 0
              • coulteriC Offline
                coulteri
                last edited by

                Thanks!
                But still too difficult for me. I do not know ruby scripting at all. πŸ˜„ I think I have to learn a lot about it. πŸ˜„

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  Moved the thread to the Developer's forum. We have reorganized so that the Plugin section is only a list of plugins you can download and use. πŸ€“

                  Thomas Thomassen β€” SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement