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!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    How to properly create a LONG chain/rope?

    Scheduled Pinned Locked Moved SketchyPhysics
    4 Posts 2 Posters 2.5k Views 2 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
      AcesHigh
      last edited by

      I want to drop a Sketchyphysics chain/rope, made of several components, over a complex object.

      But do I have to link each one of the possibly hundreds of chain segments to ball joints or is it possible to automate the process, so I can simply copy and paste the segments?

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

        Yes, there is a way to create a chain/rope (if you have SP3 with script field).

        in the model I have here there is two example, one with ball thats linked to each other direct, and one with a cylinder between each ball.

        [attachment=0:122zsqmx]<!-- ia0 -->ROPE.skp<!-- ia0 -->[/attachment:122zsqmx]

        @unknownuser said:

        The long ROPE:

        
        > ontouch{|t,s,p|
        >    connect(t,"ball") if frame==0
        > }
        > 
        

        -- This script is only connected everything it touch when you press play.

        @unknownuser said:

        The short ROPE.

        
        > ontouch{|toucher,s,p|
        >    if frame==0 #only at start
        >       case toucher.name 
        >          when "Rope"
        >             connect(toucher,"ball")
        >       end
        >    else #after first frame
        >       ontouch{} #turn off ontouch event.
        >    end
        > }
        > 
        

        -- This script connect everything that have the name "Rope" when the Play button is pressed.

        hope this help...
        /hpnisse

        ` /hpnisse`
        ` Windows 7 U -Sketchup 8 -SketchyPhysics 3.2-Dec2 - from Sweden`

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

          😞

          I was expecting some way to do it without having to resort to scripting. Cause sincerely, that looks like greek to me 😄

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

            Okey 😐

            Perhaps the file that never show upp in the answer before understand what I mean?

            ROPE.skp

            That you see its not so hard, and Iam not good at neither scripting or english:P.

            This is better than having physics joints in every link that take a lot of the computer:P

            ` /hpnisse`
            ` Windows 7 U -Sketchup 8 -SketchyPhysics 3.2-Dec2 - from Sweden`

            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