Itoo Software Forum
RailClone => RailClone Pro (*) => Topic started 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.
-
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
-
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.
-
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!
-
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
-
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.
-
Thanks!
And it seems take only first element of array in my case :(
-
You need to connect the arithmetic operator to the index parameter:
Arithmetic expression:
return
Segment X counter;
-
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).
-
Thank You!!!
-
:D Glad to help