Itoo Software Forum

Author Topic: parameterising window  (Read 2800 times)

RL1396

  • Newbie
  • *
  • Posts: 41
parameterising window
« 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

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: parameterising window
« Reply #1 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 it so we can see what can be done in Your case.
Rokas

RL1396

  • Newbie
  • *
  • Posts: 41
Re: parameterising window
« Reply #2 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

James Vella

  • Jr. Member
  • **
  • Posts: 58
  • https://www.jamesvella.net/
    • James Vella - 3D Visualizations
Re: parameterising window
« Reply #3 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


RL1396

  • Newbie
  • *
  • Posts: 41
Re: parameterising window
« Reply #4 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?

James Vella

  • Jr. Member
  • **
  • Posts: 58
  • https://www.jamesvella.net/
    • James Vella - 3D Visualizations
Re: parameterising window
« Reply #5 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.

RL1396

  • Newbie
  • *
  • Posts: 41
Re: parameterising window
« Reply #6 on: June 29, 2018, 02:04:14 PM »
The file is already online in the third message.

James Vella

  • Jr. Member
  • **
  • Posts: 58
  • https://www.jamesvella.net/
    • James Vella - 3D Visualizations
Re: parameterising window
« Reply #7 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.









« Last Edit: June 29, 2018, 06:49:20 PM by James Vella »

RL1396

  • Newbie
  • *
  • Posts: 41
Re: parameterising window
« Reply #8 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?

Dragan

  • Hero Member
  • *****
  • Posts: 1419

RL1396

  • Newbie
  • *
  • Posts: 41
Re: parameterising window
« Reply #10 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.

James Vella

  • Jr. Member
  • **
  • Posts: 58
  • https://www.jamesvella.net/
    • James Vella - 3D Visualizations
Re: parameterising window
« Reply #11 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.

RL1396

  • Newbie
  • *
  • Posts: 41
Re: parameterising window
« Reply #12 on: July 02, 2018, 10:11:59 AM »
I did it but nothing changed.

M55

  • Newbie
  • *
  • Posts: 42
Re: parameterising window
« Reply #13 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
« Last Edit: July 02, 2018, 12:21:29 PM by M55 »

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: parameterising window
« Reply #14 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));
Rokas