Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: funk24 on July 04, 2014, 08:25:56 AM

Title: array 2s, x-evenly, y-evenly
Post by: funk24 on July 04, 2014, 08:25:56 AM
hello
how can I solve this problem? see print screen.
for the x evenly also a start and an end (such as corner)?

greeting
stefan
Title: Re: array 2s, x-evenly, y-evenly
Post by: Rokas on July 04, 2014, 04:24:33 PM
could you please attach the scene?
Title: Re: array 2s, x-evenly, y-evenly
Post by: Paul Roberts on July 04, 2014, 05:11:01 PM
Hi Stefan,

Thanks for contacting us. Though there are no inputs in the generator for the ends of the X Evenly rows, it is possible to target them using some simple conditional operations. In the style shown below I've used a selector operator and an expression to use a different segment based on the position along the Y Spline.

(http://lonelymonk.com/forum_images/b676fb501c8249a4938703c5deb8cfd7.jpg)
The selector operator (1) includes the segment used for the start, mid, and end of the column. Export the Index and then plug in an Arithmetic operator (2). The expression uses two If functions, one inside the other : if(YSplinePosition<0.05,1,if(YSplinePosition>0.95,2,3)) which is checking to see if the current segment is either near the beginning of the spline, in which case it will return the segment in index 1, or near the end, in which case it return index 2. If it's neither of those, it will return index 3. This works particularly well when a top and bottom row is also being used. Note that it may be necessary to adjust the conditional values depending on the typical height range, or alternatively it could be calculated dynamically by calculating the ratio of the segments height to the current length of the Y Spline (For simplicity I haven't shown this).

This same technique should also work in a corner input too.

I've attached this style for you to have a look at.

Hopefully that helps out, please let me know if you have further questions.

Many thanks,

Paul
Title: Re: array 2s, x-evenly, y-evenly
Post by: Paul Roberts on July 04, 2014, 05:32:46 PM
Here's a version that automatically calculates the value needed for the conditional expression to work. It divides the segment height by the Y spline length and uses this to detect the start and end position.

Thanks,

Paul
Title: Re: array 2s, x-evenly, y-evenly
Post by: funk24 on July 08, 2014, 04:57:32 PM

hi paul

many thanks for your help.
now I have another question.
how can I segement in the middle?

greeting
stefan
Title: Re: array 2s, x-evenly, y-evenly
Post by: Paul Roberts on July 09, 2014, 03:24:37 PM
Hi Stefan,

RailClone doesn't have a way to automatically target that segment, but there is a way to achieve it with expressions. The catch is you cannot use Justify mode for the Y Evenly rows with this technique.

(http://lonelymonk.com/forum_images/3eb5dd124f784d629861bce5a17826ec.jpg)

I've used the same technique of evaluating the segment's position on the Y Spline, Only this time using the Y Evenly distance to work out whether the current block falls on an evenly row.  To do this:

I've attached a revised version of the file so that you can see this working.

Another option, which might be simpler, would be to use sequence operators to place segments on the Y Axis instead of using the Y Evenly input and all the conditional operations. The disadvantage is the the rows could only be moved in increments of the segment's height (and would not be sliced), so it depends on your intended usage. The Spider Glazing tutorial  (http://www.itoosoft.com/tutorials/tutorial_spider_glazing.php)used this approach to target the points at which the glass intersects.

I hope that helps, let me know if you have further questions.

Thanks!

Paul
Title: Re: array 2s, x-evenly, y-evenly
Post by: Rokas on July 09, 2014, 03:32:40 PM
very detailed description thank you.
It is still not to my liking the way corners and last column evenly are prepared, but i will try to make it myself.
Title: Re: array 2s, x-evenly, y-evenly
Post by: Paul Roberts on July 09, 2014, 03:45:39 PM
Hi, Yes, I Must admit that I didn't look at the ends of the Y evenly rows, but the same principles, only using XSplinePosition instead of Y would apply to targeting the first and last segment. Using the sequence modifier will help to target the 1st segment but can't help with the last.  Attached is a file that uses these technique to get the first and last segment in the Y Evenly rows.

Cheers,

Paul
Title: Re: array 2s, x-evenly, y-evenly
Post by: funk24 on July 09, 2014, 03:55:09 PM

hello paul

many thanks for the great help.
I have tried to solve the problem with the spider glazing tutorial.
I will study the file exactly.

the update I've already downloaded .. :)
rail clone is awesome ..!

greeting
stefan