Itoo Software Forum

Author Topic: Evenly and markers  (Read 370 times)

MO2696

  • Newbie
  • *
  • Posts: 4
Evenly and markers
« on: January 13, 2023, 10:35:27 AM »
I have a problem I can't seem to solve and don't know if it is possible to do it because I am quite new to Railclone.

So here is the thing. I made a kitchen with cupboards where you can decide how many you have. This is controlled with a count parameter in the evenly. Then I wanted to add some markers (for example an oven or a fridge) between the evenlys. However, when I put the marker in, the spline changes and alters the distribution. For example, if the evenly count was 3 in the whole spline, after the marker puts 3 in the left side and 3 in the right side. I didn't want it to change, I want to keep just 3 and the marker in the position i want without changing anything. Is there a way to solve this?
I have attached the file and a drawing showing what I mean.
Huge thanks in advance! ;D

Thank you

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Evenly and markers
« Reply #1 on: January 13, 2023, 10:51:23 AM »
Hi,

Thanks for interesting question (and congrats on a nice RailClone style!).

One solution to this is to avoid using the Marker input on the generator. As you've pointed out, this divides the spline into additional segments and causes the Evenly counter to reset. Internally, it is similar to adding a Corner segment. Instead, I would wire the oven to the Default input via another Selector operator. Set the Mode to X Marker ID. You can then add a marker just before the desired X Evenly division and set the ID value to choose an oven. The only downside of this approach is that you will also have to add another marker to set the Default segment back to standard cupboard fronts. This can also be handy though if you wanted a number of different cupboard fronts in a row, you can use markers in this way instead of using Material IDs.

An amended version of your file is attached.

I hope that helps.

Paul
Paul Roberts
iToo Software

MO2696

  • Newbie
  • *
  • Posts: 4
Re: Evenly and markers
« Reply #2 on: January 13, 2023, 11:12:33 AM »
Wow thank you Paul, for the solution and your fast reply.
I think it's a bit confusing to add 2 markers por each element but the result is exactly what I needed!