Itoo Software Forum

Author Topic: Different segments for each marker  (Read 213 times)

Oleg.B

  • Newbie
  • *
  • Posts: 36
Different segments for each marker
« 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?
« Last Edit: October 06, 2019, 10:31:15 AM by Oleg.B »

Dragan

  • Sr. Member
  • ****
  • Posts: 316
Re: Different segments for each marker
« Reply #1 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
« Last Edit: October 07, 2019, 07:27:06 AM by Dragan »