Itoo Software Forum
RailClone => RailClone Pro (*) => Topic started by: dejan on June 28, 2022, 09:51:21 AM
-
Hi, I've been following the door tutorial from one of the recent Q&As to try and create a shutter model.
My problem is that I can't figure out a way of keeping my linear generator inside the frame of my 2s array. I fetched the size of my array with an expression and translated it a bit to fit inside the frame on the bottom and the start, but I don't know how to limit the size on top and the end. I tried doing that with a null segment but it's not working.
I'm uploading a file here, it should be clearer what I mean. The generators in question are called "Linear 1S1" and "Array 2S_lamele".
Thank you for checking it out.
-
Check the General>Clipping Area>For No-Slice>Preserve/Free because you turned off slicing in the transform operator.
Mozes da me kontaktiras i direktno ako ti bas zagusti.
Pozdrav Dragan.
-
Hvala Dragane :)
But when I switch to Preserve for no slice, the linear generator just extends even more outside of the frame defined by the array. How do I keep it inside the frame on all 4 sides?
-
Probaj...
-
That works perfectly!
The only problem I see is the top lamella which is intersecting with the top of the frame. Not sure how to fiy that one, this got a bit too complex for me :D
-
I`m not near the computer again :D
Evenly distribution is tricky since the calculation is based on the spline division not including start/end or top/bottom segments.
There is a powerful attribute SectionAdjustedLength but you will have to nest another L1S to default or Evenly(Count=1).
For your Style, I`ll add a Conditional operator (after Sequence) with SegmentYCounter exposed set to "less than" some 'number'. This will limit the number of lamellas to a certain number. I guess this number should be somewhere around (Ylenght-2*frame width)/evenly distance)-1.