Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: RC2292 on April 12, 2021, 07:56:56 PM

Title: Trim X&Y-Evenly By Half YSectionLength
Post by: RC2292 on April 12, 2021, 07:56:56 PM
Hi,

I'm wanting to trim my 2S generator X&Y Evenlies by half the YSectionLength but not really sure where is best to input the expression in a Transform node to do this.


Sometimes I'll wat to trim the top portions and sometimes the bottom portions.
It should always trim the same half for all Splines in a Generator, never mixed.

Thanks
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: Rokas on April 13, 2021, 07:30:08 AM
Good Morning.
Attaching my solution. Hope this helps.

Let us know if You have any further questions.
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: Dragan on April 13, 2021, 08:19:58 AM
I think he wants to trim verticals as well.
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: Dragan on April 13, 2021, 08:44:34 AM
Here is a quick one but I`m sure it can be done with some simple style...
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: Rokas on April 13, 2021, 08:52:30 AM
In that case style gets a bit more complex. added another generator, one for x evenly one for y evenly.
(https://i.imgur.com/FRrgnKK.png)


I am not sure it can be made in one simple generator.

P.S. I see, Dragan, You upgraded You max version ;)
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: Dragan on April 13, 2021, 09:23:52 AM
 ;D Yes, I`m going to 2023 soon  ;D
@Rokas
Please check my style, I`m sure You will understand it but there is an issue with the `bounding box`.
Disconnect Null from StartTop and you will see what I`m talking about.
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: Rokas on April 13, 2021, 09:38:22 AM
nothing happens:
(https://i.imgur.com/JO5cV4t.gif)
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: Dragan on April 13, 2021, 09:58:25 AM
Yeah, I had some issue with a slice on the rounded spline on some critical point so connecting a Nell to Corners terminated this slice. (can't remember parameters values)
Never mind, just a glitch that can be easily solved.
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: Dragan on April 13, 2021, 10:02:03 AM
Try parameters 3 / 100 / 100   (disconnected StartTop)
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: RC2292 on April 13, 2021, 10:19:22 AM
Morning and thank you both for the swift response.

Dragan; Yup that's spot on but I am getting this issue with residue geometry.
It's what prompted me to ask for help. Although mine was MUCH worse and I wasn't just getting it on curved splines.

Is that the issue with the bounding box?



Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: RC2292 on April 13, 2021, 10:23:25 AM
Just posted whilst you added your post Dragan.

Yes I think this is the same issue although mine appears even if I leave StartTop connected
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: RC2292 on April 13, 2021, 10:30:16 AM
Here's a more pronounced example.
With StartTop connected but seems to only occur with curved splines. 
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: Rokas on April 13, 2021, 10:53:08 AM
Yes I noticed this bug while solving the style and already logged to our bug system. Thank You.
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: Dragan on April 13, 2021, 10:55:31 AM
Try connecting Null segment to all the corners inputs.
Title: Re: Trim X&Y-Evenly By Half YSectionLength
Post by: RC2292 on April 13, 2021, 12:38:23 PM
No, unfortunately adding Null to all the corners doesn't seem to be having any effect.