sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Animated sequences motion using Sketchy physics ruby script

    scheduled pinned locked moved SketchyPhysics
    3 Posts 3 Posters 2.2k Views 3 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • Y Offline
      youthreewire
      last edited by

      Hi,I want to know how to create motion with sketch physics producing an animated sequence.I have been reading tutorials from wikia but the one here about using ruby scripts for motion sequencing does not tell where to type the ruby script.
      http://sketchyphysics.wikia.com/wiki/Intermediate

      In the beginner tutorial it is mentioned to type the small commands like oscillator(10) in the controller box as mentioned in the link here in beginners tutorials.http://sketchyphysics.wikia.com/wiki/Beginner
      There is a blue box further down, labelled 'controller'. This is very, very important, as this is where (for now) all of your script and formulas will go.

      But I want to use if and else loops and create motion sequences,set the servo values to particular angle etc..Could some experienced person tell me how to do this?

      one-reply-to-this-post last-reply-time reply quote 0
      • P Offline
        phy
        last edited by

        most of the intermediate script goes in the ontick field.

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

        one-reply-to-this-post last-reply-time reply quote 0
        • W Offline
          Wacov
          last edited by

          (I'm the writer of Beginner, and most of intermediate)

          Hey there! Phy's right, intermediate script and onwards goes into the multi-line onTick and onTouch fields. onTick is effectively a standard script field, with the script executed every frame, or every few frames, depending on the rate you set. onTouch is executed every frame, or rate frame, while the selected object is hitting another.

          The important thing to note is that these fields are only visible with SP3 X, which you can find on the link under the 'What's new' section, on the main page of the wiki. Just install and go!

          If by 'motion sequencing' you mean Chris' Knight Game animation system, that's very advanced. You may want to play around with more simple scripts before attempting something like that 😄

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

          one-reply-to-this-post last-reply-time 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