Itoo Software Forum

Author Topic: Extracting Clipping plane X and Y max dimensions  (Read 246 times)

Anthony Lester

  • Newbie
  • *
  • Posts: 34
Extracting Clipping plane X and Y max dimensions
« 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

Dragan

  • Hero Member
  • *****
  • Posts: 802
Re: Extracting Clipping plane X and Y max dimensions
« Reply #1 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.
« Last Edit: April 06, 2021, 02:25:00 PM by Dragan »

Anthony Lester

  • Newbie
  • *
  • Posts: 34
Re: Extracting Clipping plane X and Y max dimensions
« Reply #2 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

Dragan

  • Hero Member
  • *****
  • Posts: 802
Re: Extracting Clipping plane X and Y max dimensions
« Reply #3 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. 

Dragan

  • Hero Member
  • *****
  • Posts: 802
Re: Extracting Clipping plane X and Y max dimensions
« Reply #4 on: April 06, 2021, 06:47:03 PM »
... like this...
« Last Edit: April 07, 2021, 07:51:14 AM by Dragan »

Anthony Lester

  • Newbie
  • *
  • Posts: 34
Re: Extracting Clipping plane X and Y max dimensions
« Reply #5 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.