Itoo Software Forum

Author Topic: Object facing the same direction  (Read 16143 times)

Julius

  • Newbie
  • *
  • Posts: 5
Object facing the same direction
« on: June 07, 2024, 11:48:02 AM »
Hi guys,

I would like to have some objects following two different lines (X and Y) but always facing the same direction (e.g. only the Y direction).

Here is what I did with a super simple Railclone: Linear 1S, Spline and segment. The object is always fancing perpendicular to the line, but what I need is that the object doesn´t move its direction regardless of the spline direction. Is this even possible?



Thank you all in advance.

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2684
Re: Object facing the same direction
« Reply #1 on: June 07, 2024, 12:55:30 PM »
Hi,

You can rotate the entire RailClone object and adjust the Transform > Fixed > Rotation accordingly.

I hope that helps.

Best regards,

Julius

  • Newbie
  • *
  • Posts: 5
Re: Object facing the same direction
« Reply #2 on: June 07, 2024, 01:04:32 PM »
I tried what you suggested but they are always facing diferent directions. Maybe I didn´t get what you mean exactly.

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2684
Re: Object facing the same direction
« Reply #3 on: June 07, 2024, 03:13:19 PM »
Matching splines in different directions can be tricky. Please find attached a sample scene (240607_XSplineXDirectionSampleScene_iToo.max) that demonstrates a possible style setup using an expression that evaluates the XSplineXDirection attribute. I hope this helps.

Best regards,

Julius

  • Newbie
  • *
  • Posts: 5
Re: Object facing the same direction
« Reply #4 on: June 07, 2024, 03:52:22 PM »
You are a lifesaver! I don´t think I could get to this solution by myself. Thank you so much!