Sine wave between points

 From: Ditto 31 Mar 2012  (1 of 9)
 I see all you fabulous script wizards doing things on mathematical stuff. Can I put out a request ? A sine-wave which starts and ends at points. With wave-lenght and amplitude defineable; well, approximately defineable, of course, because the sine of the start *and* the end must be zero. But I lose only a some possible infinite waves, leaving me still with infinite possible waves. As this is not precise, a slider for the wavelength would certainly be the most intuitive control if some preview is possible. That would be great ! Thank for considering this, it's certainly not as sexy as high mathematical stuff. Ditto

 From: Michael Gibson 31 Mar 2012  (2 of 9)
 5043.2 In reply to 5043.1 Hi Ditto, there is a sine wave script that you can get from here: http://moi3d.com/forum/display.php?webtag=MOI&msg=1519.38 That should let you create a basic sine wave and then you can just use regular modeling tools to modify it to your particular needs, like if you need it to start and stop at a particular point just draw in a vertical line at those places that intersects the sine wave curve and use the Edit > Trim command to cut it. - Michael

 From: bemfarmer 31 Mar 2012  (3 of 9)
 5043.3 In reply to 5043.1 Such a script could probably be done fairly easily by combining the information of the Sine script, with the Distance script,to select the two points Integer multiples of PI would give the zero crossings... On the other hand, you could just modify the Sine script to add the multiples of PI (?), because the length is already selectable... What sort of work are you doing? EDITED: 31 Mar 2012 by BEMFARMER

 From: Ditto 31 Mar 2012  (4 of 9)
 5043.4 In reply to 5043.2 Hi Michael, Thanks for that. I have seen, and played with that script. But it's not really what I am after. Your script gives a sine between A and B, I want a sine where sin(A) == 0 && sin(B) == 0. A trim won't do that, and scaling a sine to A and B would change the wavelength. Not sure to be able to name what I am after: Modeling probably, instead of technical drawing. I need to see the curves to be able to tell if they feel right. Hence, my slider with interactive update. Impossible to key in wavelength and amplitude, scale or trim, and repeat until it is Ok. So instead of a script where I need to key in numbers until good, I was after a scripts that is always good with visual feedback. Thanks, Ditto

 From: Ditto 31 Mar 2012  (5 of 9)
 5043.5 In reply to 5043.3 Hi Ben, Yes, the multiples of Pi would do the job (of course!), but, although I understand the math, I am not a programmer :( I wouldn't know for my life where to touch Michael's script. I am confronted to design a small line of items around the subject of "life", and I choose the sine because it is present in many ways in nature (Euler's number would be more versatile, but I am already struggling with sine). Not sure how to explain this: I am constructing around the objects, and sine needs to fit in. When I want a sine wave between two points, I am not after the exact wavelength, but after a visually appealing sine between two ends. Sorry if this makes no sense .. Thanks, Ditto EDITED: 31 Mar 2012 by DITTO

 From: Michael Gibson 31 Mar 2012  (6 of 9)
 5043.6 In reply to 5043.4 Hi Ditto, could you maybe just draw a little graph of what you want to help explain it? > I want a sine where sin(A) == 0 && sin(B) == 0. Ok, but the Sine function only has a value of 0 at 180 degree increments, it's 0 only at a few places, like: (using degrees) sin(0) = 0 sin(180) = 0 sin(360) = 0 etc... If you want to cut the sine wave from that other plugin up at places where it crosses the 0 value, you can just draw in a horizontal line for that along y = 0 and trim with it. Sorry I'm not getting what you are asking about, I guess I will need a bit more information and maybe a sketch or something to help me understand. - Michael