Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: arch3d on February 23, 2025, 10:32:20 am

Title: Expression checking
Post by: arch3d on February 23, 2025, 10:32:20 am
Hi

I would like to perform checking if XMarkerID is equal to one of values from array: 2,5,8,11,14,17...etc.

Any suggestion how to do it via expression?

if(XMarkerID==............ ,Input1,Input2);

Thanks for any help.
Title: Re: Expression checking
Post by: Dragan on February 23, 2025, 11:40:38 am
It should work with ValueList.
I don't have access to 3dsmax at the moment to try this:

1. Add ValueList and create your array
2. Export Index parameter for the Value List. Use SegmentXCounter for this index.
3. Use this as Input1 in your expression
Title: Re: Expression checking
Post by: Dragan on February 23, 2025, 11:22:02 pm
Well, it should work if that is what you need.

I added another RC Annotation to display various data such as Dimensions, Spline IDs, SegmetXCounter, MarkerID values, and Vertices numbers...
Please let me know if you need something more.




Title: Re: Expression checking
Post by: arch3d on February 24, 2025, 07:27:10 am
Hi Dragan,
Nice to see you again:)
Ill try, but as i think correct in such case I shoud type elements of the list maually, and not expose all nubers form array.

Btw for dimmensionsion i used ceil Operator because i get vaiues from Marker Data.

Many thanks for help!
Title: Re: Expression checking
Post by: arch3d on February 24, 2025, 07:42:55 am
It should work with ValueList.
I don't have access to 3dsmax at the moment to try this:

1. Add ValueList and create your array
2. Export Index parameter for the Value List. Use SegmentXCounter for this index.
3. Use this as Input1 in your expression

Miss this reply, yea this shoud work

Many thanks
Title: Re: Expression checking
Post by: Dragan on February 24, 2025, 08:09:53 am
Ah, yeah... I forgot there is a password on the RC Annotation object. Sorry  ;)

@ everyone pass: topgun

The main staff is the Macro, which generates a number mesh on the output. You can input any number mesh using numeric input, box input is just for the decimal separator.
I have exposed some parameters too...
important note: if you are about reusing some of my macros the main generator must be named "Master"

Please let me know if you need some more info or additions to preset.





 
Title: Re: Expression checking
Post by: arch3d on February 24, 2025, 08:18:26 am
Thanks!

And it seems take only first element of array in my case :(
Title: Re: Expression checking
Post by: Dragan on February 24, 2025, 08:28:30 am
You need to connect the arithmetic operator to the index parameter:
Arithmetic expression:

return
Segment X counter;
Title: Re: Expression checking
Post by: Dragan on February 24, 2025, 08:31:58 am

Btw for dimmensionsion i used ceil Operator because i get vaiues from Marker Data.

Many thanks for help!

You can use Macro for this too, just add my MasterOverrideMarker to Input and set which MarkerData you are using (0-8).
 
Title: Re: Expression checking
Post by: arch3d on February 26, 2025, 02:52:38 am
Thank You!!!
Title: Re: Expression checking
Post by: Dragan on February 26, 2025, 06:41:43 am
 :D  Glad to help