1
$\begingroup$

Good afternoon. As a tutorial, I'm making a simple system for procedurally creating handrails. As long as the railings are on the same plane (1), everything is fine. But when bending, the vertical elements are oriented locally (2)enter image description here. How to make sure that they are always, at any tilt, straight up, according to world coordinates? Additional info - In the railings, all their parts (upper profile, lower profile, two intermediate ones, balusters) are separate objects that I can change. They are customizable according to the distance between them, and different types of profiles. And everything works - except that the balusters are not oriented according to the world coordinate system when the bend goes along the Z axis. Here is the frame that controls the balusters - enter image description here

Thank you.

$\endgroup$

1 Answer 1

1
$\begingroup$

update:

what about just unplugging rotation? does that help?

enter image description here

enter image description here


unfortunately you didn't really specify how your handrails should look like. But if you really "just" want to make the point on z axis, you could use this node setup:

enter image description here

if you wanna have same y-distance, you could use this setup:

enter image description here

$\endgroup$
6
  • $\begingroup$ Thanks for the answer. Yes, unfortunately, I gave incomplete information. I added some info in original post ( its my first post here and i don't know how to add images to comment) $\endgroup$ Apr 3 at 20:53
  • $\begingroup$ i updated my answer. if this still doesn't help, please provide your blend file. thx. $\endgroup$
    – Chris
    Apr 4 at 6:04
  • $\begingroup$ you can add images in comments by first starting a new answer, copy the image in there, then copy the generated link and cancel that answer. Then you can copy that link in the comment. $\endgroup$
    – Chris
    Apr 4 at 6:05
  • $\begingroup$ For 'same y disdtance'.. . (same xy distance?)... simpler to achieve by scaling curve to 0 in Z, resampling while flat, stashing XY and combining with existing Z ? $\endgroup$
    – Robin Betts
    Apr 4 at 7:23
  • $\begingroup$ @RobinBetts: that's actually an easier way! $\endgroup$
    – Chris
    Apr 4 at 8:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .