sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    SP3x Apr3 version.

    Scheduled Pinned Locked Moved SketchyPhysics
    36 Posts 10 Posters 6.9k 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
      CPhillips
      last edited by

      AHH HHA!. ๐Ÿคฃ ๐Ÿ˜ ๐ŸŽ‰ I achieved something today that I have been trying since SP1. Joints that work without using the JCT. Its something I had working in SPIV but I could never figure out how to do in SP3.

      [flash=600,400:3fr1gscy]http://www.youtube.com/v/tS56PNcbH9I[/flash:3fr1gscy]

      Despite the version number in the video it doesnt work with RC1.
      Next version of SP3x should have it.

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

        Ooooooooooohhhhhhhh that looks great. Will they be able to be emitted? And Can anything that collides with a "joint" connect to it?

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

          !

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

            THANK YOU SO MUCH FOR A ZIP VERSION!!!! ๐Ÿ‘ โ˜€ ๐Ÿ˜

            I reject your reality and substitute my own.

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

              Man thats cool. I want a go but ill never remember code to do it

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

                2 things: one, Is that when you go back to edit scripts sometimes the spaces will be double, and if that happens to one script several times,it can make it harder to read. Can that be fixed?

                also, is there a way to have a OnTouch function work with specific objects?

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

                  @unknownuser said:

                  Ooooooooooohhhhhhhh that looks great. Will they be able to be emitted? And Can anything that collides with a "joint" connect to it?

                  Not at this time. And yes.

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

                    @unknownuser said:

                    2 things: one, Is that when you go back to edit scripts sometimes the spaces will be double, and if that happens to one script several times,it can make it harder to read. Can that be fixed?

                    I havent seen that. It might be Mac specific. Can you give me the steps to reproduce it.

                    @unknownuser said:

                    also, is there a way to have a OnTouch function work with specific objects?

                    Not yet.

                    1 Reply Last reply
                    Reply Quote 0
                    • K
                      KDSDESIGN
                      last edited by

                      i installed it, but when i press play it says im still using alpha...?

                      Regards,
                      โ–ˆKevinโ–ˆ

                      (about 20% done)

                      1 Reply Last reply
                      Reply Quote 0
                      • W
                        Wacov
                        last edited by

                        Look in the UI; when you have an object selected, if 'onTouch' and 'onTick' are shown as options near the bottom, then don't worry. If they aren't, you'll have to ask C Phillips what to do next.

                        If they are there, then don't be concerned about the version display, mine still says RC1.

                        http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

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

                          Sorry there has been no new version in a while. Based in large part to the feedback from this version. I am going to make a few changes.

                          getVar/setVar will continue to work, But I am going to make a change that will allow you to use what ruby calls member variables. In next version instead of this:

                          setVar("count",getVar("count")+1)
                          

                          You can do this:

                          @count=@count+1
                          

                          or even

                          @count+=1
                          

                          Another feature of this is that each object can have its own copy of the variable. So you could have 3 objects with different values in "@count". If you truly want all object to look at the same copy you can use "@@count"

                          While handy all by itself this will also make it possible for scripts to know a lot more about the objects. For example in the onTouch you could use:

                          
                          if(touching.name=="sphere") 
                          g=touching.copy #make a copy of the sphere
                          g.magnetic=true; #make copy magnetic.
                          end
                          

                          "touching" is a new command for onTouch scripts that gives you access to the object that touched. So you could look at its name or location or color or whatever.

                          Also you can interact with the object.
                          "g=touching.copy" means make a copy of the touching object and store it in temp variable "g".

                          "g.magnetic=true" Someone asked to be able to make emitted objects magnetic and this is how you would do it.

                          Its going to take a bit before it is ready but it will be worth it.

                          1 Reply Last reply
                          Reply Quote 0
                          • W
                            Wacov
                            last edited by

                            WooHoo! With the new variables, will @foo be usable by only one script, or every script within an object? Oh and could you let the simulation know more about what an object is doing; like, 'sphere.speed' to find an object's speed?

                            http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

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

                              I was wondering, is there any way to put scripts in the white boxes? Because I was trying to set the ratio of a gear to something like getVar('Ratio') but it won't let me type letters in any of the white boxes, so I tried copying getVar('Ratio') into it, it lets me do that but it's gone the next time I open the UI box.

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

                                @frediivx said:

                                I was wondering, is there any way to put scripts in the white boxes? Because I was trying to set the ratio of a gear to something like getVar('Ratio') but it won't let me type letters in any of the white boxes, so I tried copying getVar('Ratio') into it, it lets me do that but it's gone the next time I open the UI box.

                                you can only put script in blue boxes not white

                                1 Reply Last reply
                                Reply Quote 0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better ๐Ÿ’—

                                Register Login
                                • 1
                                • 2
                                • 2 / 2
                                • First post
                                  Last post
                                Buy SketchPlus
                                Buy SUbD
                                Buy WrapR
                                Buy eBook
                                Buy Modelur
                                Buy Vertex Tools
                                Buy SketchCuisine
                                Buy FormFonts

                                Advertisement