Itoo Software Forum

Author Topic: Hard times creating opening window  (Read 635 times)

OB

  • Newbie
  • *
  • Posts: 38
Hard times creating opening window
« on: August 01, 2023, 08:29:13 AM »
Hi everyone!
So, I am trying to make opening/randomizing casement windows with A2S.
It consists of 3 A2S: one is for the frame (which is not moving or rotating), the second is some additional elements, and the third is an actual window, which has to have the option to rotate with a pivot on hinges.
So after a couple of hours fiddling with the parameters, I've made it open at 90dg , but if I try to open more - the window starts to move to the other side.
I am unsure if I am doing that correctly, but basically, I am assembling that rotating window into A2S and after that, I use that as a segment to rotate. And since I have to use A2S - that's where all the problems are starting. I don't know which segment slot to use for the best result.
I've attached the scene, so please check it out whenever possible.
Thanks

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Hard times creating opening window
« Reply #1 on: August 01, 2023, 10:21:06 AM »
Hi,

Opening windows are quite tricky, but I think I have it working in your file. Please download it and take a look. In order to open the window > 90 degrees you will need to set the Alignment to use Pivot on the X and Z axes. The main change I made to achieve this was to remove the Clipping Spline from the nested Generator. Instead I used XSplineLength and YSplineLength to find the size of the clipping area used in the final generator.

The pivot for a nested generator is always the RC objects pivot. Therefore, this change will give you more predictable results because the nested array will now be created also starting at the RC Objects pivot location. This means the pivot will always be on the bottom left corner of the opening sash. from here you can use constants to slightly move the sash around to get the pivot in just the right place as well as adjusting the size to account for the hinge.

I hope that makes some sense! Please let me know if you have any questions after looking at the file.

Many thanks,

Paul
Paul Roberts
iToo Software

OB

  • Newbie
  • *
  • Posts: 38
Re: Hard times creating opening window
« Reply #2 on: August 01, 2023, 02:13:29 PM »
Paul, you are a savior as usual! That's what I missed - you can actually create A2S without using a spline - just dimensions of it. And you will not be bound by it. That's a very cool thing to have, thanks!