Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: RL1396 on June 26, 2018, 12:55:38 PM

Title: parameterising window
Post by: RL1396 on June 26, 2018, 12:55:38 PM
I am trying to create parameterized windows with railclone. I have a problem with inserting a handle on one side of the window. Here is the result. Despite my various attempts, I can not make sure that there is no gap above the handle, or put it in the middle of the amount.
Do you have an idea?p
Title: Re: parameterising window
Post by: Rokas on June 26, 2018, 01:06:26 PM
Hi,

It is hard to give You any tip without testing it on Your scene. Please attach or send it to us (https://forum.itoosoft.com/faq/how-to-send-a-file-to-itoo-software/) it so we can see what can be done in Your case.
Title: Re: parameterising window
Post by: RL1396 on June 26, 2018, 02:04:12 PM
Here's the file.
I would just like to have a handle in the middle of the left jamb of the window
Title: Re: parameterising window
Post by: James Vella on June 28, 2018, 02:52:40 PM
Instead of mirroring the left side to the right side of the window, create a piece the same length as the left with the handle and put this into the right side. Remove the sequence node you have as well

Title: Re: parameterising window
Post by: RL1396 on June 28, 2018, 10:16:34 PM
Thank you. This is a solution even if I can not put the handle in the middle of the right amount of the window.
Another problem is that I do not know how to solve either. The gray profile on the attached image is the one I want to use. When I make a railclone (purple profile), the profile is open and no longer fits my model. Why?
Title: Re: parameterising window
Post by: James Vella on June 29, 2018, 11:00:30 AM
Thank you. This is a solution even if I can not put the handle in the middle of the right amount of the window.

It should be in the middle, not sure why might be good to upload the file to inspect - check your pivots and align by pivot.

Another problem is that I do not know how to solve either. The gray profile on the attached image is the one I want to use. When I make a railclone (purple profile), the profile is open and no longer fits my model. Why?

Its difficult to tell in this screenshot, upload the max file (2017). My first guess would be that is has to do with being rotated on the wrong axis.
Title: Re: parameterising window
Post by: RL1396 on June 29, 2018, 02:04:14 PM
The file is already online in the third message.
Title: Re: parameterising window
Post by: James Vella on June 29, 2018, 06:37:08 PM
Geometry Cut Off:
It seems the geometry is overhanging the bounding area slightly which is removing the edges. If you put a padding of 0.01 it will fix this.

Handle in Center:
In Terms of keeping the handle in the middle, I have kept your sequence node and adjusted it to have an expression for the index which reads like anything less than 49% or more than 51% to use the sides otherwise use the handle piece.

Expression:
return if(YSplinePosition<0.49,1,
if(YSplinePosition>0.51,1,2));

Unfortunately I cant seem to have the Y to scale like the X in regards to the pieces fitting. I would like to link the fixed Y scale to the length of the spline Y but unsure about how to do this. You can inspect the 3D file if you like (attached), Its not 100% but it should work for your situation (unless you are trying to set up pipeline) - with 1 workaround it should be ok for the most part. The workaround: If your handle dissapears after you change the spline length you can decrease the fixed Y scale of the Left Side Segment which will increase subdivisions however will make the handle reappear as its trying to fit it exactly between the current tile pieces.

You will notice I have already decreased the size of the pieces as this makes them tile more and allows you to have the door handle repeat more often in the centre. When it was longer (about 1200mm) It would only put a centre piece in every 3600mm. Alternately I would prefer to have the Side pieces scale to each end of the Y axis and the Door Handle placed directly in the centre @ 50% - this is what the next revision of this would hopefully look like.

If I come across a better way to do this ill keep you posted - Im currently working on parametric windows as well so hopefully ill work it out. Also appreciate if anyone else knows how to do this better as the workaround isnt so great if you want to just blanket this across many splines etc.

(http://i67.tinypic.com/u25vs.jpg)

(http://i64.tinypic.com/1zg6pf6.jpg)

(http://i63.tinypic.com/2hod0nt.jpg)



Title: Re: parameterising window
Post by: RL1396 on June 29, 2018, 07:56:06 PM
Thank you for your answer.
I am now trying to set the window to have a central amount. Despite the instructions of the tutorial, I have an error on the formula to use. This is the same formula as in the tutorial. Would you know why?
Title: Re: parameterising window
Post by: Dragan on June 29, 2018, 09:20:40 PM
Change `=` with `==`

https://docs.itoosoft.com/railclone/converting-railclone-2-styles-for-railclone-3
Title: Re: parameterising window
Post by: RL1396 on June 30, 2018, 09:10:16 AM
Thank you for this solution.
the expression works now however, the window does not update as it should.
Title: Re: parameterising window
Post by: James Vella on June 30, 2018, 12:08:06 PM
Export the parameter Index and wire the expression to that, it looks like you have exported On/Off instead.
Title: Re: parameterising window
Post by: RL1396 on July 02, 2018, 10:11:59 AM
I did it but nothing changed.
Title: Re: parameterising window
Post by: M55 on July 02, 2018, 11:54:34 AM
i tried
the tutorial start version
with 3.1.9b

and i have the same problem

arithmetic seem to be not working

i edited the expression

if(YSplinePosition==0,3,
if(YSplinePosition==1,1,2));

says OK but does not work

if i disable the arithmetic and swich manual from 1 to 2 to 3 they show up
Title: Re: parameterising window
Post by: Rokas on July 02, 2018, 01:35:39 PM
You need return in front of everything:

return if(YSplinePosition==0,3,if(YSplinePosition==1,1,2));
Title: Re: parameterising window
Post by: M55 on July 02, 2018, 02:09:30 PM
... now it works fine ... forgot about that change  8)
Title: Re: parameterising window
Post by: RL1396 on July 02, 2018, 10:29:21 PM
YES.
That's the good solution. Thank you.
Title: Re: parameterising window
Post by: M55 on July 05, 2018, 10:25:06 AM
just tried to build a new window based on the tutorials.

Now i have two questions
- is the second frame on the bottom intended ... and is it possible to get rid of it. in the video everything looks fine on the bottom.
- what are the two parameters for ... the panel height 2 works fine but the pane height 1


OK found the answer in the "parameterising blinds tutorial" pane (panel) height 1 is for the metal blinds on bottom ... they are missing in the parameterising tutorial files .. thats why there is an "empty" frame on the bottom