Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Paulo R. Beck on August 15, 2018, 12:16:22 AM

Title: Another Topic about Windows.
Post by: Paulo R. Beck on August 15, 2018, 12:16:22 AM
Hello everyone

After many hours trying to figure it out myself, I think it's time to ask for help. I decided to open a new topic, because I did not find anything
that would help me in other topics. If someone has some tips from other posts that help me in this endeavor please send me.


I'm doing this window, with a top panel and two lower ones, I'm first doing the External Window Frame, but it contains two different segments on the Sides.

I'm not getting the side to appear in the desired sequence.

Lower corner + Bottom + YEvently + Upper part + Upper corner


thanks for everything
Title: Re: Another Topic about Windows.
Post by: James Vella on August 15, 2018, 09:30:28 AM
I found when making windows it helps to really look at how the generator works first then plan around this. for example:

(http://i66.tinypic.com/okpeeh.jpg)

I would build this in either 3 or 4 generators for simplicity. Such as:

(http://i65.tinypic.com/bhlgfc.jpg)

(http://i65.tinypic.com/ngts7d.jpg)

(http://i65.tinypic.com/2zyyjj6.jpg)

Once you have each generator working correctly you can then wire the generators into each other to work based on each the padding or x/y translations based on the last one.

The trickiest part will be the top mullion in the generator 1 (the red one) - unless you dont need this to move and will always be at this height then I would build it as apart of generator 1. If you need it to move you will need to do some basic arithmatic and make use of the sequence node and have the other generators offset by the height which the user will control. The Complex Window (https://forum.itoosoft.com/railclone-pro-(*)/complex-windows/) type window I came up with will work for nearly any window type with some adjustments (which is basically the window your making but upside down), however I have not had time yet to write a comprehensive tutorial - but I can point you in the right direction. These two tutorials helped me build the base for this type of workflow (as my maths and coding is not so strong I found these a more artist friendly approach).

https://www.itoosoft.com/tutorials/creating-panelling-and-wainscoting?back=page%3D2%26tag%3Drc

https://www.itoosoft.com/tutorials/kitchen-cabinets-with-railclone?back=page%3D2%26tag%3Drc

I would also build this without the glass to begin with, once you get the hang of the workflow you can build separate generators at the end for the glass or build them into your current ones if you dont need them to move. For example I built them into separate ones so that when I change the mullion depth/width I can move the glass separately or switch them off while making sure everything is working parametrically.





Title: Re: Another Topic about Windows.
Post by: Paulo R. Beck on August 15, 2018, 12:17:14 PM
Thank you very much for your response, very nice that you have just answered, because I have read and reread your post about Complex Windows, I also did the tutorial of the kitchens (maybe I should do it again).

- The Plan is to do with several Generator.
- In the Generator of the external Frame, the Y Evently has to be adjustable, and Enter Y Evently and Top of and there is a Glass.
- The sides are composed of 3 parts, the lower part is thinner, the middle one makes the junction with the Y Evently and the top is thicker, as shown in the image I posted.

This would be my first Generator
Title: Re: Another Topic about Windows.
Post by: James Vella on August 15, 2018, 01:45:22 PM
Thank you very much for your response, very nice that you have just answered, because I have read and reread your post about Complex Windows, I also did the tutorial of the kitchens (maybe I should do it again).

Yes, I would recommend while doing the kitchen tutorial you have it open and try to translate it across to what you are doing, it will take a few times but you will get the hang of it after you throw your monitor out the window the first 3 times (but dont, be kind to the environment).

- In the Generator of the external Frame, the Y Evently has to be adjustable, and Enter Y Evently and Top of and there is a Glass.

If it needs to be adjustable I would recommend creating a generator specifically for this piece (lets call this Generator B).
You can then and plug in Null Segments that use Fixed X/Y size from your Red Frame as the Padding for Generator B to sit within Red Frame.
You can then create your Blue Frames which then use Generator B as their Top point + the Fixed X/Y frame width.
You can then use the Bottom piece of Red Frame for where your Blue Frame generator Bottom point will be ( + the Fixed X/Y frame width).

- The sides are composed of 3 parts, the lower part is thinner, the middle one makes the junction with the Y Evently and the top is thicker, as shown in the image I posted.

When building the Blue Frame pieces, build them separately (turn off the generators you are not working on). When its working then try expose other parts of Red Frame (such as its Fixed X/Y size) so you can wire those parameters in as your offsets to your Padding or Null Segments.

Tip: Try to avoid exposing Transform Translation to begin with as you can run into troubles later, stick with Padding/Fixed Size at first for controlling the offsets, then you may find it more useful later on (such as in my Complex Window you can then use that Transform Translation to actually slide open the window).

Here is a screenshot of how my Centre Mullion works (same as what you are trying to achieve with your Y Evenly):

(http://i68.tinypic.com/2cergat.jpg)

The null node is offsetting the Red Frame Horizontal Mullion from the Red Frame in your case, which is faking a Y Evenly. Its good to asses whether or not the Y evenly will work for your case in particular, once you take a good long hard look at that diagram you will start to see if it will do what you want. Example: Notice the Y Evenly intersects on the left side on the Start piece. You can actually override this behaviour and it might work for you, I found I ran into additional problems which didnt help me with my solution. You will have to experiement and take note of how things relate to each other after you make a fundamental change.
Title: Re: Another Topic about Windows.
Post by: Paulo R. Beck on August 16, 2018, 12:11:07 AM
Thank you! I've made a lot of progress today ... I'll post something tomorrow! very late here in Germany already! time to sleep xD
Title: Re: Another Topic about Windows.
Post by: James Vella on August 16, 2018, 09:29:38 AM
Excellent, great to hear :)
Title: Re: Another Topic about Windows.
Post by: Paulo R. Beck on August 17, 2018, 12:50:45 AM
I can not fit the doors.

I thought of ... Use Padding to push the Top Panel up to leave the door space and use the Top Panel Size to push the top of the door using Padding Top, but it has not worked

Title: Re: Another Topic about Windows.
Post by: James Vella on August 17, 2018, 08:26:07 AM
Can you save this as a 2017 file?

Title: Re: Another Topic about Windows.
Post by: James Vella on August 17, 2018, 10:24:33 AM
Without looking at the 3D file I can take a guess if you like.

- Make the Glass a Default Segment
- Set the Y Fixed Size for your top window to be Controlled by the Numeric Horizontal Mullion Offset Node.
- Use a Null to Offset the Start, End, Top and Bottom for the Frame widths.
- Wire the Mullion Height Numeric Node into an Arithmetic Node and set the expression to: YSplineLength - Input1
- You can now wire this Arithmetic Node into your Padding Bottom of the Glass Segment.

Just take note in the screenshot below Im doing this for the Bottom window (reverse of yours), so yours would be Bottom Padding instead of Top Padding in the Transform for the Glass

(http://i64.tinypic.com/2zh45r7.jpg)

Edit: Just be aware of limitations using this method. Such as if you want to have this window rotate open you may need to use a different method. You will see what I mean if you now try to rotate this using the Transform Translate. A workaround for this is once you have that Particular piece of the window with its glass working you can then duplicate the entire Railclone and use that as the Segment. Let me know if you need to go this far as I will have to show you a working demonstration otherwise I might confuse you. I would focus on getting all the components working first then we can focus on the Animatable parts
Title: Re: Another Topic about Windows.
Post by: Paulo R. Beck on August 17, 2018, 07:33:51 PM
It was all a matter of using the expression  YSplineLength - Input1;
Thank you very much, now I have to do the horizontal panel...

Title: Re: Another Topic about Windows.
Post by: James Vella on August 18, 2018, 07:03:36 AM
Excellent!