• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Sine Curve (wave) script?

Scheduled Pinned Locked Moved Developers' Forum
24 Posts 6 Posters 4.5k Views
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
    JClements
    last edited by 22 Mar 2008, 22:20

    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 23 Mar 2008, 08:52

      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 23 Mar 2008, 09:06

        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 23 Mar 2008, 13:02

          @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
          • J Offline
            JClements
            last edited by 23 Mar 2008, 15:28

            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 23 Mar 2008, 17:37

              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
              • J Offline
                JClements
                last edited by 23 Mar 2008, 19:57

                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 26 Mar 2008, 00:41

                  @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,

                  301 Moved Permanently

                  favicon

                  (www.sketchucation.com)

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    JClements
                    last edited by 26 Mar 2008, 02:32

                    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 28 Mar 2008, 23:25

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

                      301 Moved Permanently

                      favicon

                      (www.sketchucation.com)

                      Hi

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 2 / 2
                      2 / 2
                      • First post
                        24/24
                        Last post
                      Buy SketchPlus
                      Buy SUbD
                      Buy WrapR
                      Buy eBook
                      Buy Modelur
                      Buy Vertex Tools
                      Buy SketchCuisine
                      Buy FormFonts

                      Advertisement