SpiroTube
Creates a cylindrical mesh, created around a series of X, Y and Z positions which are defined by 3 different functions. The functions can be easily changed using 7 variables (Segments, M, N, P, Q, H and T) which are all spinners.
There is a editor to more easily view and edit the functions, and a preset editor, which allows you to save settings for later use.
The mesh can be manipulated, with twisting and scaling of the radius (The radius can be changed using a regular, distance, or custom function. The tube can be rotated and twisted (with a bias)).
A Spline can be created following the same functions.
Thanks to:
www.blitzbasic.com/Community/posts.php?topic=57616
For the function to rotate one vector around another.
And:
www.mi.sanu.ac.rs/vismath/taylor2009/index.html
For the basic idea, and presets.
Installation...
Copy the file to "C:\Program Files\Autodesk\3ds Max 20??\scripts\Startup\SpiroTube.ms".
(Re)launch 3DS Max.
Updates:
V1.5
Rewrote.
Presets and preset editor changed.
Distance option added for radius change.
Radius change now has a overall effect value, and the option to use none of the 3 options.
Editor for functions added.
Removed closet face option.
Moved plugin to "Extended primitives" section.
V1.0
Added option to use the closet edge for the faces connecting start/end, when using twist this can fix twisted faces at the end.
Changed a few other things.
V0.95
Added preset saver, and editor.
V0.9
Bias now works with negative values.
when re-loading a scene, the selected preset doesnt change values.
Added boxes(colorpickers) to each side of the x,y,z positions, to notify user of errors within the functions.
Video below is not up to date.
Attachment | Size |
---|---|
SpiroTube V0.8 | 13.81 KB |
SpiroTube V0.9 | 15.05 KB |
SpiroTube V0.95 | 32.68 KB |
SpiroTube V1.0 | 34.21 KB |
Spirotube V1.5.ms | 39.44 KB |
Comments
Ok, no problem, glad it's
Ok, no problem, glad it's working.
Presets
Scrap that sorry, figured it out. I just saw the convert.ms script.
Thank You :)
Presets
Hi, I have 3ds Max 2009 and the latest Spirotube V1.5.ms kept saying no presets loaded on everything I did. So I have tried version 1 and that works perfectly. Just thought I'd let you know in case it doesn't work with older versions of Max.
Great scipt, thanks :)
No problem, glad it's working
No problem, glad it's working :)
Apologies
Apologies for not gettting back with you faster;
I used your reset presets tool and now everything works deliciously well.
Thanks for the help; great script :)
All your scriptz are belong to me!
It hasn't caused any trouble
It hasn't caused any trouble for me, does it tell you the line where the error occurred (the MAXScript listener should have it)?
If you used a different version (prior to using 1.5), you will have to reset, or convert the presets (one of my comments below has a small script to do so), the error sounds like a problem with the presets, you should be able to access the editor without it complaining about the presets, and in the advanced part you can reset them.
Also, if a MAXScript error comes up, (most of the time) you have to re-run the script for (any of) it to function again, the spinners are probably not working because of this.
1.5 on max 2014 x 64 doesn't
1.5 on max 2014 x 64 doesn't seem to function well at all.
it creates the tube, but none of the presets work, if i try to use them it pops up saying it can't change the trig functions to integers.
playing around with the spinners doesn't seem to work either.
v.1 worked ok, but i still got good results. I did change the category from "extended primitives" to "standard primitives" though i doubt that would have any effect. maybe it did. thanks for the script
All your scriptz are belong to me!
Thank you :) If you mean the
Thank you :)
If you mean the image at the top of the page, P needs to be -2, Q needs to be a odd number, and T is Q+2. N needs to be low, and the frequency of radius deformation needs to be T.
If you mean lantlant's image, you would have to ask him, but some combinations of sin and cos for the x/y function should get you something similar.
Hi
Great work all round, love the script and just out of curiosity, what settings did you use to create the jewellery on the top left of this image, fascinating
V1.5 update
Re-wrote it, its not much better though :P
The presets have been changed, so run the script attached if you want to convert old ones into new ones(otherwise just open the preset editor, press "advanced", and then press "reset".
If anyone has any ideas about a better bias function(I havent found anything on the internet) help would be appreciated.