sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    SketchyPhysics 3.5.6 (26 January 2015)

    Scheduled Pinned Locked Moved SketchyPhysics
    208 Posts 49 Posters 289.9k Views 49 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.
    • A Offline
      Anton_S
      last edited by

      SP doesn't have this method, but I created my own.
      https://3dwarehouse.sketchup.com/model.html?id=ua22b41f2-9654-4d70-898b-46d96e687272

      https://googledrive.com/host/0B3qg8f4WrNdHWktZLXN5T2d6Tms/factory_slicer.gif

      1 Reply Last reply Reply Quote 0
      • ashscottA Offline
        ashscott
        last edited by

        Anton,

        I am stunned ๐Ÿ˜ฒ

        I have tried so long to get a working function like what you've shown and have failed miserably - this is totally amazing. I hope you don't mind me pillaging your code for ideas?

        Frenchy:
        @unknownuser said:

        And also the white cross texture box "transparent" who is drawn

        For some reason "Hidden Geometry" is getting turned on when I run an simulation the first time. Go >View>Hidden Geometry to turn it off.

        Just some stuff I do with Sketchup.

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          Cool function! ๐Ÿ‘
          But seems there is a glitch! ๐Ÿ˜‰

          When I use these 2 menus!
          After the Record Animation, replay etc...
          Animation is stopped at the moment of the box must be "exploded" on the inclined plane! ๐Ÿ˜ฒ
          Can you verify this ?

          And also the white cross texture box "transparent" who is drawn! ๐Ÿ˜ฒ
          This is the image of the result wished!
          glitchSketchy.jpg


          cut_body_example_glitch.skp

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

          1 Reply Last reply Reply Quote 0
          • pilouP Offline
            pilou
            last edited by

            Thx ๐Ÿ˜„

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

            1 Reply Last reply Reply Quote 0
            • A Offline
              Anton_S
              last edited by

              @unknownuser said:

              When I use these 2 menus!
              After the Record Animation, replay etc...
              Animation is stopped at the moment of the box must be "exploded" on the inclined plane! ๐Ÿ˜ฒ
              Can you verify this ?

              The animation doesn't handle added and removed objects during simulation.

              What happens behind the scenes:
              When the body is about to be split, the body itself doesn't split, but rather two other bodies are added in similar form. The original body becomes hidden and set static, meanwhile the two added bodies take over the scene. When simulation resets the original body is unhidden, and the added split bodies are deleted. The animation tool is not complex. It does not record added and removed bodies during simulation.

              1 Reply Last reply Reply Quote 0
              • A Offline
                Anton_S
                last edited by

                @ashscott said:

                Anton,

                I am stunned ๐Ÿ˜ฒ

                I have tried so long to get a working function like what you've shown and have failed miserably - this is totally amazing. I hope you don't mind me pillaging your code for ideas?

                Thanks! I'd be impressed to see someone use my code ๐Ÿ˜„

                1 Reply Last reply Reply Quote 0
                • pilouP Offline
                  pilou
                  last edited by

                  @unknownuser said:

                  It does not record added and removed bodies during simulation.

                  Ok!
                  So, how do save the result of the normal result if you want to use it for something?
                  For example I want use the brocken rocks for an exposition! ๐Ÿ˜„
                  Now as soon has i want select them (broken rocks) the animation restart at the beginning! ๐Ÿ˜ฒ

                  In the past I was making that without problem! ๐Ÿ˜„

                  http://sketchucation.com/forums/download/file.php?id=123049&t=1

                  http://sketchucation.com/forums/download/file.php?id=123045

                  Frenchy Pilou
                  Is beautiful that please without concept!
                  My Little site :)

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    Anton_S
                    last edited by

                    In the past when you selected a different tool SP didn't always deactivate properly, i.e. sometimes objects failed to be placed back to original locations, but now they do. I suppose, you relied on the bug.

                    One way to get all the split bodies is by playing simulation, pausing it at desired frame (i.e when you have broken rocks), and then save as another model. Open the new model, and you have the broken rocks!

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      gyrolen
                      last edited by

                      *Anton , can you help.?
                      I cant get SP 3.5.2 to install on Windows 7, using Sketchup Pro 2014.
                      Can you advise how to do it.?
                      I have downloaded the .rbz file, but where do you put it SU2014 does not seem to use rbz files anymore.
                      Thanks,
                      Len

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        Anton_S
                        last edited by

                        @gyrolen said:

                        *Anton , can you help.?
                        I cant get SP 3.5.2 to install on Windows 7, using Sketchup Pro 2014.
                        Can you advise how to do it.?
                        I have downloaded the .rbz file, but where do you put it SU2014 does not seem to use rbz files anymore.
                        Thanks,
                        Len

                        There are two ways you can do it:

                        Way one:

                        • Download SketchyPhysics_3.5.2.rbz
                        • Open SU2014 and navigate to (Menu) Window > Preferences.
                        • In the preferences window navigate to Extensions tab and select Install Extension... button
                        • From there, find your downloaded compressed file, and select open button, which will install the extension.

                        Way two:
                        Use PluginStore extension. Follow installation steps here: http://sketchucation.com/resources/plugin-store-download

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          gyrolen
                          last edited by

                          @anton_s said:

                          @gyrolen said:

                          *Anton , can you help.?
                          I cant get SP 3.5.2 to install on Windows 7, using Sketchup Pro 2014.
                          Can you advise how to do it.?
                          I have downloaded the .rbz file, but where do you put it SU2014 does not seem to use rbz files anymore.
                          Thanks,
                          Len

                          There are two ways you can do it:

                          Way one:

                          • Download SketchyPhysics_3.5.2.rbz
                          • Open SU2014 and navigate to (Menu) Window > Preferences.
                          • In the preferences window navigate to Extensions tab and select Install Extension... button
                          • From there, find your downloaded compressed file, and select open button, which will install the extension.

                          Way two:
                          Use PluginStore extension. Follow installation steps here: http://sketchucation.com/resources/plugin-store-download

                          Thanks Anton ,your instructions worked fine, have got it going, now to learn how to use it. Len

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

                            @anton_s said:

                            Hello, William!

                            Yes, SP doesn't have these methods. The API is quite incomplete.
                            I just added getLifetime, getLifeStart, and getLifeEnd.

                            Is there any other getter or setter functions you think shall be added before I post an update? Sorry, I can't think of any myself.

                            Sorry for taking so long to get back to you. Thank you for the info!

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

                              Oh, actually I did think of something else that I would like to see:

                              Could you create a function which would allow you to retrieve the "parent" of an emitted object? (eg, toucher.getEmitter?)

                              1 Reply Last reply Reply Quote 0
                              • pilouP Offline
                                pilou
                                last edited by

                                I must miss something! ๐Ÿ˜ณ

                                @unknownuser said:

                                One way to get all the split bodies is by playing simulation, pausing it at desired frame (i.e when you have broken rocks), and then save as another model. Open the new model, and you have the broken rocks!

                                @unknownuser said:

                                The animation doesn't handle added and removed objects during simulation.

                                So the animation can never play after the beginning of the cutting! ๐Ÿ˜ฎ

                                Try with this example and show me how you can save the broken rocks.
                                (I have the last version 3.52)


                                cut.skp

                                Frenchy Pilou
                                Is beautiful that please without concept!
                                My Little site :)

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  Anton_S
                                  last edited by

                                  Pilou, I'm speaking about the simulation tool, not animation tool. Press the Physics Toggle Play button and wait till the body is cut. As soon as it cuts, press the Physics Toggle Play button once again to pause. From there on you can 'save as' the model, but don't press the reset button, until you do say the model as another model, for instance, cut2.skp

                                  1 Reply Last reply Reply Quote 0
                                  • pilouP Offline
                                    pilou
                                    last edited by

                                    @unknownuser said:

                                    I'm speaking about the simulation tool, not animation tool. Press the Physics Toggle Play button and wait till the body is cut. As soon as it cuts, press the Physics Toggle Play button once again to pause. From there on you can 'save as' the model, but don't press the reset button, until you do say the model as another model, for instance, cut2.skp

                                    Alas it's that I make but when i Reload the "save as" that is again the start of the simulation!!! ๐Ÿ˜ฎ
                                    idem with your Cut2 file !
                                    A very vicious thing! ๐Ÿ˜„
                                    alas.jpg

                                    Frenchy Pilou
                                    Is beautiful that please without concept!
                                    My Little site :)

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      Anton_S
                                      last edited by

                                      Pilou, I re uploaded the cut2 file.

                                      One thing to remember is that after you save as, unhide all bodies and delete all the temporary hidden split bodies that were part of the original body. I already did this in the new cut2 file.


                                      cut2.skp

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        Anton_S
                                        last edited by

                                        --

                                        1 Reply Last reply Reply Quote 0
                                        • V Offline
                                          vlkster
                                          last edited by

                                          Ok, i'm having a problem with the control panel/sp inspector. when i name a hinge, using " or ' i don't get a slider bar in the control panel. If i leave off the " or ' than i get a error"script error: undefined local variable or method..."

                                          any help?

                                          thanks
                                          john

                                          1 Reply Last reply Reply Quote 0
                                          • A Offline
                                            Anton_S
                                            last edited by

                                            @vlkster, are you saying that you wrote slider("or') in the controller?
                                            If so, then you got it wrong! The quotation marks surrounding the string must be the same!
                                            You may eigher use a double quote (") or a single quote ('), but you cant use a combination of both.
                                            This is what it should look like, slider("or") or slider('or').

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 10
                                            • 11
                                            • 3 / 11
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement