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

    Sine Curve (wave) script?

    Scheduled Pinned Locked Moved Developers' Forum
    24 Posts 6 Posters 4.5k Views 6 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.
    • JClementsJ Offline
      JClements
      last edited by

      Thank you Bob, for the clarification.

      Regards, John

      John | Illustrator | Beaverton, Oregon

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

        Just a couple of notes to add to the other Bob's last post.

        • You can use PI in K2 Graphs formulae (saves having to type in 3.14159)
        • K2 Graphs appears to use meters as a default unit. However the dimensions will show up in whatever units you have set to display. In Bob's case this seems to be millimeters, hence the need to correct by 1000. The scale factor to correct from meters to feet is .3048
          Bob
        1 Reply Last reply Reply Quote 0
        • W Offline
          watkins
          last edited by

          From one Bob to another,

          Oops! Should have figured that out. Must be getting slow.

          Regards,
          Bob

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by

            @jclements said:

            Thanks, all!

            Jim, about the code you posted.

            Is that a snippet from a Ruby script and can it be run from the Ruby console window? Or, could a Sine Script be written that asks user for unit of measure, length and amplitude and maybe the number segments?

            John

            John,

            If you still want it, I can write it up.

            Hi

            1 Reply Last reply Reply Quote 0
            • JClementsJ Offline
              JClements
              last edited by

              Jim, yes please. I am sure to use it. 😄

              John | Illustrator | Beaverton, Oregon

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

                Pathcopy.rb has a feature that allows you to copy to spacing http://www.smustard.com/script/PathCopy. So if you rather have a nice-looking, higher-poly curve and space components by a set distance along the curve, it seems possible.

                1 Reply Last reply Reply Quote 0
                • JClementsJ Offline
                  JClements
                  last edited by

                  Hi Gata.

                  I do use the copy along path script and it works nicely. But the trick here is to space (subdivided) equi-distant if you will, along an existing curve. The functions that Fred06 has provided are flexible enough to aid in doing this, plus, re-manipulate/smooth some complex curves.

                  John | Illustrator | Beaverton, Oregon

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jim
                    last edited by

                    @jclements said:

                    Thanks, all!

                    Jim, about the code you posted.

                    Is that a snippet from a Ruby script and can it be run from the Ruby console window? Or, could a Sine Script be written that asks user for unit of measure, length and amplitude and maybe the number segments?

                    John

                    John,

                    http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=8917

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • JClementsJ Offline
                      JClements
                      last edited by

                      Thank you, Jim!

                      It works beautifully.

                      Regards, John

                      John | Illustrator | Beaverton, Oregon

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jim
                        last edited by

                        I have updated the script to make it remember values between calls.

                        http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=8917

                        Hi

                        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