Jump to content

Array along a path


YOHKOH
 Share

Recommended Posts

A very powerful way of creating pretty much any array you can think if is to use the Snapshot tool. Basically, this creates "snapshots" from an animated object, so you can use the timeline to define the array.

 

To make a series of copies of objects that lie upon a spline:

1. Select the object you want to clone.

2. Animate it, so its motion is that of the "array spline" (use eg Motion tab > Trajectories button > "Convert from" button)

3. If needed, animate the rotation as well (right click the Rotate icon and type in numeric values)

4. Inspect the animation and verify it looks ok.

5. Go to Tools > Snapshot

6. Select Range, and specify the start and stop time to just cover the animated range. Instance them if you like to make the update of one object propagate to the others. Also, specify the number of copies, just as an array.

7. Click OK, sit back and watch it go!

 

Cheers,

Robert

Link to comment
Share on other sites

This should work.. go to Maxscript pulldown, New Script, paste the below in there, and just edit the numbers in the rotate_increment line to say how much each object rotates..

run it from File->Evaluate all

oh it should rotate them in the order that you select them too :)

 

rotate_current = eulerangles 0 0 0 --reset our additive value
rotate_increment = eulerangles 2 0 0
-- where eulerangles says its an angle, and 0 0 15 are 0 degrees X, 0 degrees Y, 5 degrees Z respectively

sel = selection as array 
--for all selected objects we will...
for obj in sel do
(
--add our increment to our current
rotate_current.x = rotate_current.x + rotate_increment.x
rotate_current.y = rotate_current.y + rotate_increment.y
rotate_current.z = rotate_current.z + rotate_increment.z
--and rotate the current object in the loop
rotate obj rotate_current
)

Link to comment
Share on other sites

Thanks Rob

 

Worked a treat, just what i wanted. I'd post the test results but my company blocks image shack.

 

 

 

Dave thanks a lot, i've been loking for something to do that for ages, found one for sketchup but never for max.

 

Thanks everyone

Link to comment
Share on other sites

  • 9 months later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...