Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Pages: 1 2 [3]

Author Topic: script request-copy along a spline  (Read 54053 times)

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Re: script request-copy along a spline
« Reply #30 on: July 05, 2008, 03:03:54 pm »

Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Duplicate objects based in points (mesh2path_2.a8s) modified ?
« Reply #31 on: July 08, 2008, 10:26:52 am »

Hi again NickiE,

is possible to charger "mesh2path_2.a8s" to duplicate objects BASED ONLY IN THE POINTS POSITIONS and axis X,Y and Z of mesh?
follow sample:


for generate hair, grass etc...

.a8s for download?

(PS: the Standalone Grassgen software don´t work right in rounded objects and axis Y).
I believe then a8s. script work better!!

Thank you! :D

- Sorry my english ok, i´m not americam  ;)

Neirao - Brazil



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.


Logged

NickE

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Re: script request-copy along a spline
« Reply #32 on: July 08, 2008, 10:32:10 am »

Please see the response to your other similar post:

http://www.anim8or.com/smf/index.php?topic=951.msg6950#msg6950
Logged

Boywonda1

  • Jr. Member
  • **
  • Posts: 83
  • “Imagination is everything."
    • View Profile
Re: script request-copy along a spline
« Reply #33 on: December 30, 2008, 04:10:12 am »

Thanks NickE this really helps.i guess i have to delete my suggestion in the forum.:D
Logged
"When I examine myself and my methods of thought, I come to the conclusion that the gift of fantasy has meant more to me than any talent for abstract, positive thinking.” -Albert Einstein

dajean

  • Newbie
  • *
  • Posts: 43
  • Creativity
    • View Profile
Re: script request-copy along a spline
« Reply #34 on: January 30, 2009, 01:40:30 pm »

Hey Nicke when I try to download the video tutorial I get a php file, but no video.

any idea why?

Logged

dajean

  • Newbie
  • *
  • Posts: 43
  • Creativity
    • View Profile
Re: script request-copy along a spline
« Reply #35 on: January 30, 2009, 01:43:15 pm »

sorry for double posting, the file is called "index.php"
Logged

NickE

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Re: script request-copy along a spline
« Reply #36 on: January 30, 2009, 06:53:08 pm »

It is not a video tutorial, it is a web page.
Logged

Tanzim

  • Guest
Re: script request-copy along a spline
« Reply #37 on: January 31, 2009, 06:42:01 am »

Just rename the file to x.avi (x= file name, and avi=the actual video type)
Logged

NickE

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Re: script request-copy along a spline
« Reply #38 on: January 31, 2009, 08:26:16 am »

My apologies.  I though you were referring to the web page tutorial on animating tank treads at:

http://www.tranceportsoftware.com/anim8orstuff/
Logged

Andyba

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • 3d artist jobs
Re: script request-copy along a spline
« Reply #39 on: June 07, 2009, 05:06:50 am »

Wow thank you NickE.
This is a very handy script.
Logged
Freelance 3d artist
free textures
Pages: 1 2 [3]