Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Anthony Lester on April 06, 2021, 02:06:38 PM

Title: Extracting Clipping plane X and Y max dimensions
Post by: Anthony Lester on April 06, 2021, 02:06:38 PM
Is there a way to extract the x and y attributes of a clipping plane used to generate an array.

I would like to use this information to specify a fixed Y dimension of an segment so that it scales to the full height of the clipping plane, similar to the Default segment rule of scale.

I would also then like to use the info to use within an expression to determine the aspect ratio of the clipping spline so that I can determine a specific material ID.

The clipping spline always be rectangular, it will in effect be a window frame
 
Thanks in advance
Anthony
Title: Re: Extracting Clipping plane X and Y max dimensions
Post by: Dragan on April 06, 2021, 02:19:55 PM
Sorry, I didn't see your attachment but here is an example.
Edit: either way I can`t open it due to the Max version. Can you please downgrade it to 2018.
Title: Re: Extracting Clipping plane X and Y max dimensions
Post by: Anthony Lester on April 06, 2021, 02:56:14 PM
That's the ticket, I had tried the x/y spline length in a n expression but not as a nested array

Many thanks
Anthony
Title: Re: Extracting Clipping plane X and Y max dimensions
Post by: Dragan on April 06, 2021, 03:05:59 PM
Glad to help.
Since you can set the Default mode to Scale only on the "X-axis", to prevent unnecessary segment count, please, pay attention to Side segments ("Y-axis") and try to calculate Fixed Y size for those elements. 
Title: Re: Extracting Clipping plane X and Y max dimensions
Post by: Dragan on April 06, 2021, 06:47:03 PM
... like this...
Title: Re: Extracting Clipping plane X and Y max dimensions
Post by: Anthony Lester on April 06, 2021, 07:05:24 PM
Thanks,

Yes That is what I have done, I have also been able to get the aspect ratio as well from the two expressions and using that to select a range of materials.