Itoo Software Forum

RailClone => RailClone Pro (*) => RailClone Pro Beta => Topic started by: Oleg.B on October 06, 2019, 10:27:42 AM

Title: Different segments for each marker
Post by: Oleg.B on October 06, 2019, 10:27:42 AM
Hello
I am checking out RC4.0 and I find it amazing so far! I am quite happy with the markers implementation, but I am struggling with one thing.
What I want to do is to assign different segment for different marker ID's. And I do not see that in the conditional node. It would be cool to choose marker ID in the conditional node to choose different segments, now I see that is implemented in the array node.

Up: I've found it in the arithmetic node, but I think it would be nice to have it in the conditional node, or you want to avoid repeats?
Title: Re: Different segments for each marker
Post by: Dragan on October 06, 2019, 11:52:06 AM
Hi
You can use Selector Operator and for index there is a new choice for marker ID.

For Conditional use a workaround:
1. Export Parameter ON/OFF for Conditional Node (don't check any of the conditional options).
2. Connect the Arithmetic node to that parameter.
3. Select Expression and use something like this:
Return
if(XMarkerID=="your target XsplineMatID",false,true);

Here is an example.
RC1 uses Selector and RC2 uses Conditional workaround if needed.
Just keep in mind that MarkerID starts from the value 0.

Best Regards
Dragan