General Category > ASL Scripts
script request-copy along a spline
NickE:
Attached is the requested script. It copies a mesh along a spline. To use it, you must have a mesh called "copytarget" that will be copied. You must also have a spline called "copypath". After selecting the icon, click in the editor window to make the parametric shape of the copytarget copied along the copypath appear. If you double-click on the parametric shape, the parameters will show:
Center parameter: 1=mesh's centroid follows spline and is the origin of rotation, 0=mesh's own coordinate system's origin follows the spline and is the origin of rotation.
X-Rotate, Y-Rotate, Z-Rotate: degrees of rotation to apply to the mesh before it follows the spline (0 to 360 degrees).
Spacing %: Amount of spacing between copies of the mesh expressed as a multiple of the z-width of the mesh after rotation (0.001 to 10)
Note that the coordinate system of the spline has the z-axis along the spline so the mesh copies are spaced according to the z-width of the mesh after rotations are applied.
Also note that the mesh has its own coordinate system based on the values of its points regardless of how it is displayed in the editor window. Even if you change the orientation and origin of the mesh, it retains its original point values.
*** Remember to convert the parametric shape to a mesh before using it in any other objects, in figures, or scenes. It is totally dependent on the original "copytarget" mesh and "copypath" spline while it remains a parametric shape. As Steve stated: parametric scripts were never intended to work this way. ***
One final note: this script only works with Anim8or 0.97b (or later, when they arrive).
Please try it out and please let me know your feedback.
karate5662:
wow...
it works amazingly, nice job.
I was able to make quite a nice set of tank tracks in about 5 minutes. well done.
EDIT: added another, better track
thecolclough:
really good tracks, karate5662! especially the 2nd one.
i really need to get into scripting...
- colclough
kreator:
I`m having a few problemos with this .... i have a mesh called copytarget and a spline called copypath....and all I get is this.....this is 0.97b version too.
karate5662:
is the object you are using as copytarget a parametric shape?
YOu have to convert it to a mesh first. and make sure there is no typos.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version