• Login
sketchucation logo sketchucation
  • Login
🤑 30% Off | Artisan 2 on sale until April 30th Buy Now

Unfolding plugin idea

Scheduled Pinned Locked Moved Plugins
19 Posts 9 Posters 5.6k Views
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.
  • K Offline
    kyyu
    last edited by 30 May 2011, 15:28

    Also, You can output text to the status bar vs alot of message boxes: http://code.google.com/apis/sketchup/docs/ourdoc/sketchup.html#status_text=
    Message boxes are especially good for alerting the user of errors and debugging your code.

    And there is a book that may help you out, concerning sketchup ruby. You can download the full pdf for free: http://www.autosketchup.com/

    1 Reply Last reply Reply Quote 0
    • M Offline
      MattC
      last edited by 1 Jun 2011, 09:09

      Thanks Everybody ! With Your help I got it working.
      After this long weekend I will post what I have done.
      Still there are some problems, but those I will try to solve later.

      Matt

      1 Reply Last reply Reply Quote 0
      • D Offline
        DOD3R
        last edited by 1 Jun 2011, 11:13

        nice would be the possibility to make UV mam from this

        1 Reply Last reply Reply Quote 0
        • O Offline
          Orangutan
          last edited by 15 Jul 2011, 10:32

          Nice work. Thanks.


          autounfold.JPG

          1 Reply Last reply Reply Quote 0
          • M Offline
            MattC
            last edited by 15 Jul 2011, 12:07

            Hello Everybody

            Here is result of my work.
            Plugin will make a autounfold submenu , with 2 options: unroll and rotate to XY plane AND unroll and leave in plane of last element.
            Select elements to unroll first and then activate tool.
            Pick first face, and then pick one adjacent to define in which direction it schould be unfolded.

            Script is based on idea of unfoldtool , and made with help of this comunity.
            Therefore no rights reserved, and no responsibilities to be taken by author.
            Feel free to test,use and modify.
            C&C welcome!

            Matt


            Autounfold

            1 Reply Last reply Reply Quote 0
            • P Offline
              Pixero
              last edited by 15 Jul 2011, 13:26

              Thanks! I will study it carefully. As you know I have an idea... 😉

              1 Reply Last reply Reply Quote 0
              • K Offline
                Kuddl
                last edited by 25 Jul 2011, 06:59

                (old) Unfolding plugin idea

                (new) [Plugin] Unfolding automatically 😄

                Hi Matt,

                why do you do no official plug-in from this?
                Nice work. Thanks. 👍
                You must not hide!

                Sorry my bad english… 😳
                Kuddl

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MattC
                  last edited by 25 Jul 2011, 08:21

                  Hello

                  First, it is not finished, there are some things that I would like to change but have no time at this moment.
                  Second, it is not well tested, I know that on some conditions it will not work properly, I am still investigating the reasons.
                  Third, When it comes to large curved surfaces, that consist of more than 400 faces, because if the loops that sit in code it can freeze.

                  So no official plugin yet.Still lots of things to improve.

                  Matt

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    MattC
                    last edited by 5 Aug 2011, 09:16

                    [Solved] BUT ideas are appreciated I am busy with reworking the code , but I found a small problem.
                    First situation:
                    Rectangle in XY plane, with a normal vector shown.
                    Then this rectangle was split with a line into two triangles, again with shown normals.

                    https://lh6.googleusercontent.com/-wwcErWmEVv8/Tjuv1W0tHLI/AAAAAAAABEY/e0rGPukMTkQ/s600/a1.PNG


                    https://lh3.googleusercontent.com/-maBwUfPqGIU/Tjuv1osNksI/AAAAAAAABEg/utV0_szKZio/s600/a2.PNG

                    No problem.
                    Second situation, with rectangle not in XY plane:

                    https://lh4.googleusercontent.com/-QXNPYC3ju_U/Tjuv19ltcrI/AAAAAAAABEk/wxlfgPhDme4/s600/a3.PNG


                    https://lh5.googleusercontent.com/-7_n-e9E7vGs/Tjuv1ZbMONI/AAAAAAAABEc/bUFnmOqAdrA/s600/a4.PNG

                    As you can see, there are smaal differences in coordinates.
                    But when checking if faces are coplanar ( by comparing normals, of planes of faces) it gives a false result.
                    Is there a walkaround? is it possible to perform some kind of rounding of coordinates?

                    Thanks for help.
                    Matt

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Gade
                      last edited by 10 Nov 2012, 18:38

                      Hello, i'm very interested into your plugin but it's not working on my computer... is it possible to use your plugin with mac ? i have sketchup 8? please help me to use your plugin i would like to make a model ...

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        MattC
                        last edited by 13 Nov 2012, 07:29

                        @gade said:

                        Hello, i'm very interested into your plugin but it's not working on my computer... is it possible to use your plugin with mac ? i have sketchup 8? please help me to use your plugin i would like to make a model ...

                        Hi I will need some more informations to answer, I havn't used it in a long time, at least this version, but I see no reason why it should not work on Mac.

                        You can also take a look here:
                        http://www.papermodelers.com/forum/software/18100-spp-sketchup-paper-planes-tools-sketchup.html

                        Greets
                        Matt

                        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