Jump to content

Vertical posts along a 3D spline


PellePixel
 Share

Recommended Posts

How place an array of posts creating a fence there everybody should be vertical even if the spline is 3D? Tried Spacing tool & Follow that is near the solution... all posts follows in the tangent direction but they are not vertical.

Think I did this in an early 3Dmax version but forgotten how.

Using several hundred posts when making road barriers.

Link to comment
Share on other sites

  abicalho said:
Don't use Follow and they should all remain vertical.

 

Yes, but if you have an shape/section on the post (most common) that have to follow the spline when it turns then it will not work (?) - the posts will (without "follow") keep the same direction

For example a post with a rectangular section should of rotate with the spline when it turns.

Link to comment
Share on other sites

I see now. I don't know of a solution except when using MAXScript.

 

Do this: create all your clones with Follow. Then select them all, open the MAXScript Listener and evaluate these 2 lines:

 

for i in selection do i.rotation.x_rotation = 0

for i in selection do i.rotation.y_rotation = 0

 

Now your posts should be rotated only in Z, and all vertical.

 

If they show upside down, set the X rotation = 180 instead of 0.

 

Let us know if it works.

 

Alexander

Link to comment
Share on other sites

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...