sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Sketchy Physics and Ruby

    Scheduled Pinned Locked Moved SketchyPhysics
    6 Posts 4 Posters 1.3k Views 4 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.
    • J Offline
      jblively
      last edited by

      Hello,

      New to Ruby and SketchyPhyics. I've looked and looked...and I can access Sketchup entities and layers and such from Ruby, but what I really want to do is be able to change parameters of the joints in 'runtime' via a web dialog. For example to adjust the min/max of a joint. Does anyone know of a example or article that talks about this.

      Also, is there a sketchyphysics API definition like the one that Sketchup has on google?

      Thanks guys for the help!!!

      Joe

      1 Reply Last reply Reply Quote 0
      • H Offline
        hobbnob
        last edited by

        Ruby was never meant to work directly with sp, but if yo uwant proper advice, ask either wacov or mr.k, none of which are on this forum, but on sketchup users instead, check my signature for the address

        My WIP Thread:Here

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

          @ Alex, actually, Wacov is on Sketchucation.

          You could ask him, he should know.

          Remember, great minds think alike, and fools never differ.

          1 Reply Last reply Reply Quote 0
          • H Offline
            hobbnob
            last edited by

            Sure he may be a member, but that does not mean he posts, which he doesn't

            My WIP Thread:Here

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

              http://forums.sketchucation.com/memberlist.php?mode=viewprofile&u=11520 He actaully has posted...493 posts. πŸ˜†

              Remember, great minds think alike, and fools never differ.

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

                @unknownuser said:

                He actaully has posted...493 posts.

                That I have, but it's certainly been a while πŸ˜„

                I think it's possible, just difficult. From what I've found, you generally have to change the way SP works to achieve deep-down stuff like this, so it'll either only work on your machine, or it'll have to use LazyScript (the problem is the 'runtime' part... joints are initialized at the simulation start using their set attributes). I'll look into it a little further though, it'd be a useful feature to have πŸ˜„

                SP unfortunately doesn't have an API, and I think it'd be pretty hard to understand if it did πŸ˜‰

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

                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