Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: concrete pixel on September 28, 2020, 02:42:50 PM

Title: Spline local axis vs world axis
Post by: concrete pixel on September 28, 2020, 02:42:50 PM
Hey guys! This is my first post on the forums. I've been learning railclone over the past few months and have been working on a script for a stone wall generator. My script is 98% complete except for an issue with local axis vs world axis of my splines. Here is the scenario...

I am using a nested L1S array to generate base objects for an A2S array. When my spline is oriented along the "X-Axis (world)" everything works fine. However, any spline NOT oriented to the "X-Axis (world)", blows up. I created a numeric input (float) to transform the "Z-Rotation", but this is very limiting and is not parametric.

I think the solution is trying to extract the coordinates from the spline to find it's position, then apply that rotation to my transform node. Is this possible to do with an arithmetic expression? This part of my script has stumped me... can you guys help?

Thanks!
-Dan
Title: Re: Spline local axis vs world axis
Post by: Rokas on September 28, 2020, 03:01:22 PM
Hi. Can You please share Your maxfile so we can check it? If possible simplified to the maximum to just illustrate the issue.
Title: Re: Spline local axis vs world axis
Post by: concrete pixel on September 28, 2020, 03:26:57 PM
Here is a simplified version of the issue. I left the Z transform node at "0" to show the issue. If you change the value to 90, it will show correct coursing
Title: Re: Spline local axis vs world axis
Post by: Rokas on September 28, 2020, 03:46:45 PM
Thanks.

You dont need to plug the same spline to both generators. It only creates this issue You are talking about.

(https://i.imgur.com/lKvZDlC.png)
Title: Re: Spline local axis vs world axis
Post by: concrete pixel on September 28, 2020, 03:52:52 PM
That works great! Thank you!