Itoo Software Forum

Author Topic: Parking lines with spline ID for invalid  (Read 207 times)

Crayox

  • Newbie
  • *
  • Posts: 31
Parking lines with spline ID for invalid
« on: June 02, 2021, 04:33:00 PM »
Hi guys,
so a very banal question. I exported x evenly distance from my linear generator and I want to change its value depending on spline ID (to select from normal and invalid parking spaces). Selector, it seems, can't select constants. Which was my first approach, I would select which value to input to x evenly distance based on spline mat ID.

Second was this arithmetic
return if(XSplineMatID==1, 250, 310);
I can plug it but it's not working either. Does it not know which spline? I mean there's only one.

Thanks!

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Parking lines with spline ID for invalid
« Reply #1 on: June 02, 2021, 04:38:54 PM »
evenly is special. It is evaluated only once and cant be changed dynamically throughout the spline.

Why dont You attach Your max file and tell us what You want to do.
Rokas

Crayox

  • Newbie
  • *
  • Posts: 31
Re: Parking lines with spline ID for invalid
« Reply #2 on: June 02, 2021, 04:40:41 PM »
Oh ok, didn't know that. Thanks! Just adding a vertex before bigger parking spots helps too actually.