Itoo Software Forum
RailClone => RailClone Pro (*) => Topic started by: brovar64 on May 04, 2023, 02:56:07 pm
-
Hello,
I have a problem here (Digits are ID's):
(https://i.postimg.cc/qqhxp5Mx/Screenshot.jpg)
So I have 3 scenarios:
1: When ID2 and ID3 are alongside
2: When ID3 is alone
3: When ID2 is alone
The problem is, that when ID2 and ID3 touch each other- I want them not to show their Start and End elements. (The screenshot below explains it better :) )
(https://i.postimg.cc/02vhVYtH/Screenshot2.jpg)
Any thoughts on how to solve it? Thanks.
-
Hi,
Using the Selector Operator driven by an expression should help to "pick" the correct part (XSplineMatID for corners returns the ID of the segment BEFORE the corner and XSplineNextMatID ID of the segment AFTER the corner.):
return if (XSplineMatID==2 && XSplineNextMatID==3, 1, 2)));
I hope that helps.
Best regards,
-
Sorry, it seems like I am not able to comprehend the logic of the XSplineNextMatID, or perhaps I am making some mistake. Here is a simplified example of what I had posted earlier (attached max file, saved in max2021)
(https://i.postimg.cc/ZRMC724Q/3.jpg)
(https://i.postimg.cc/W3C0FhFt/2.jpg)
(https://i.postimg.cc/ryR16C34/1.jpg)
Based on my understanding, the start and end elements should be NULL, not sphere (btw Selector node is in Index mode) :-X
-
Hi,
Thanks for your swift reply. The workflow mentioned previously is meant to be used within the Corner Input only. To enhance possibilities for similar scenarios we added in the latest RailClone Pro 6.0.6 beta (https://forum.itoosoft.com/announcements/railclone-pro-6-0-6-beta/) 'XSplinePrevMatID' and 'YSplinePrevMatID' attributes to expressions.
I hope that helps.
Best regards,
-
Ah, now everything has fallen into place, thank you!