RailClone > Work in Progress
RailClone Remove First and Last Items From Array
(1/1)
Lucia:
Hi all, after 3 hours of google and gpt I have not yet resolved my issue.
I created a brick wall using RC (Y Evenly), and now from each line of bricks I want to remove the first and the last items.
Tried to do so using the Start/End connectors, no way.
Was trying to use the Arith Expression and return a value something like
--- Code: ---return if(SegmentXRole==2, true, flase);
#Apparently the number 2 identifies the Start segment...not sure this logic makes sense btw
--- End code ---
and then taking action on the true/false outcome perhaps, but now way.
I am sure there is a simple way to achieve it...can somebody be so kind to support please? :'( :'( :'( :'( :'( :'(
Thanks!
Lucia
Paul Roberts:
Hello Lucia.
If you remove a brick from the start and end the default will just move in to close up the gaps, and if you add a zero size brick to the Default input, the array will just stop to prevent the creation of an infinite loop.
One solution is to add Transform nodes to the Start/End. Turn On Fixed Size and set the size of your bricks but don't add any actual geometry. That should create brick sized gaps at both ends of the array.
I hope that helps.
Paul
Navigation
[0] Message Index
Go to full version