Itoo Software Forum
RailClone => RailClone Pro (*) => Topic started by: arch3d on February 18, 2022, 11:59:39 AM
-
Hello,
I would like to ask you for quick help. I hate condition expression and I never know how to use it :(
I have L1S with fixed ID's
Now i would like to offset Generator from spline using expression
If matID=3 would be offset defined as Input1 else Input 2 would define offset
Many thanks for help
Michal
-
Switch Arithmetic node to Expression and type:
return
if(XSplinematID==3,input1,input2);
-
Thx, now i know where i made mistake:)
-
But I`m not sure this will work on General Y Offset. I think there were issues about this because of offsetting spline under the hood. I don't have Max at the moment to check it out.
If this won't work you can try adding transform and expose Y/Z Translation parameter (depending on your generator orientation) and use it as an offset.
-
Exacly i found this Y Offset limitation
I tested as well
return
if(XSplinematID==3,input1, if(XSplinematID==4,input2,input1));
Your expression and nested second conditional works fine in X and Z Axis.
If General Y Offset wont work ill transform segments
-
Yeah, I know it >:( :(
Well, you will have to use either Transform>Translate or some nesting depending on the complexity of your generator.
-
I have nested L1S in L1S so its pretty complex - i testet segment translation - works fine
Thx again