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

    SP3x Apr3 version.

    Scheduled Pinned Locked Moved SketchyPhysics
    36 Posts 10 Posters 4.6k Views 10 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.
    • C Offline
      CPhillips
      last edited by

      Hmm. Wonder what I broke. Can you do this. Load sketchup. Skip the error. Open the Ruby console under the windows menu. And then type this into the bottom part.

      load 'sketchyphysics.rb'
      

      and post the error it prints.

      Thanks
      Chris

      1 Reply Last reply Reply Quote 0
      • C Offline
        CPhillips
        last edited by

        Ah, I think I found the problem. I updated it. Let me know if it still errors.

        1 Reply Last reply Reply Quote 0
        • C Offline
          CPhillips
          last edited by

          sorry, I am out of time to write up the script commands tonight. But here is a sample that demos a few of them.


          AutoAimingGun5-Goal-Sunspawn.skp

          1 Reply Last reply Reply Quote 0
          • B Offline
            BTM
            last edited by

            ...So, once again, no mac yet?

            1 Reply Last reply Reply Quote 0
            • F Offline
              FredIIVX
              last edited by

              Im not 2 great at scripting, so could you tell me how 2 control the sound, e.g. play a gunshot.wav when joybutton('RB') is pressed? I tried different variations of things like this joybutton('rb'); playsound('gunshot.wav') but can't get it 2 work -- Edit --
              DW i resloved it in the end

              1 Reply Last reply Reply Quote 0
              • S Offline
                Sgt.A.Johnson
                last edited by

                @unknownuser said:

                ...So, once again, no mac yet?
                You always have to wait for everything on mac. My dad has one and it really annoyed me cos my pc at home wouldn't run sketchy physics and there was no sketchy physics on mac. At least i have my laptop now. not the best processor but more than enough RAM to make up for it.

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MrPlanet
                  last edited by

                  Are we allowed to post this version?

                  I reject your reality and substitute my own.

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    MrPlanet
                    last edited by

                    Oh, yes and please could you post a zip file of this? Thanks.

                    I reject your reality and substitute my own.

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      CPhillips
                      last edited by

                      @unknownuser said:

                      ...So, once again, no mac yet?

                      Sorry, I had trouble with the PC version and ran out of time. I will post it tonight.

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        CPhillips
                        last edited by

                        @unknownuser said:

                        Are we allowed to post this version?

                        It should be ok. Just be aware some things could change.

                        I will outline some of the hazards in my script post. I will finish that tonight. Its too nice a day here to spend indoors.

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          Physicsguy1
                          last edited by

                          Can you use your own sound files?

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            CPhillips
                            last edited by

                            @unknownuser said:

                            Can you use your own sound files?

                            Nope! 😄 That was the problem I discovered soon after I got sound working. I cant possibly include a decent library of sounds, for one thing they are just too big.

                            What I am going to do instead is make it possible to embed .WAV files into the Sketchup model. That way you can put whatever sounds (or music) you want in. AND the copyright issue isn't my problem anymore.

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              Physicsguy1
                              last edited by

                              How should i achieve this?

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                BTM
                                last edited by

                                You can't right now. If you want someone else to get the sound file, post it on the forum or somewheres else, and tell them to go get it 😆

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  CPhillips
                                  last edited by

                                  @unknownuser said:

                                  You can't right now. If you want someone else to get the sound file, post it on the forum or somewheres else, and tell them to go get it 😆

                                  Thats right. But I'll get the embedded sound working asap.

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    phy
                                    last edited by

                                    @frediivx said:

                                    Im not 2 great at scripting, so could you tell me how 2 control the sound, e.g. play a gunshot.wav when joybutton('RB') is pressed? I tried different variations of things like this joybutton('rb'); playsound('gunshot.wav') but can't get it 2 work -- Edit --
                                    DW i resloved it in the end

                                    how, i can't get it to work

                                    Tableau de comparaison de Staxyn s'agit d'un mГ©dicament uniquement sur ordonnance.

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      BTM
                                      last edited by

                                      its: playsound("gunshot.wav");100
                                      the;100 represents the value of the emitter's strength.

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        Physicsguy1
                                        last edited by

                                        would playsound('gunshot.wav');-(a)*500 work?

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          CPhillips
                                          last edited by

                                          I updated the first post with a link to the Mac version:
                                          http://sketchyphysics2.googlecode.com/files/SP3x-Apr5-MacAndWin.zip

                                          There are no real changes between this and the last version.

                                          Looks like the first thing I am going to focus on is fixing the playsound problems. I have the code that will embed and extract wav files from the model. But I need to do a little UI work. I need embed sound/clear sounds menus.

                                          As soon as I got the playsound command working I was disappointed by it. At least on windows it is very very limited. You can only play one sound at a time and not very fast.

                                          Can someone with both Mac and Windows tell me if it behaves the same on both?

                                          1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            BTM
                                            last edited by

                                            On mac, I can play as many sounds as I want simultaneously, and can have sounds start for every frame. Don't know about windows though. Once I tried making a motor with sound, and even less than every frame it would start another loop.

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

                                            Advertisement