Itoo Software Forum

Author Topic: Set evenly count via expression (matID or length of segment)  (Read 509 times)

HP3623

  • Newbie
  • *
  • Posts: 10
Hello,
I want so dynamically set the evenly count on a linear generator. First I tried to set the count via expression using "XSectionLength" as the condition, that didn't work. I then tried to set it via "XSplineMatID" but that is also only returning one value, regardless of what material id I set. Can someone tell me what could be the mistake?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1490
Re: Set evenly count via expression (matID or length of segment)
« Reply #1 on: July 22, 2016, 10:52:11 AM »
Hi,

Unfortunately it isn't currently supported to set the evenly count mode using an expression in a way that would return a different value for each spline. It is possible however using a technique which we originally posted before Count mode was introduced.  You can read about it and download some sample scenes from here. http://forum.itoosoft.com/index.php?topic=2385.msg9030#msg9030

Another option might be to add the segments to the Corner input instead of the Eveny, and divide the spline to add vertices that place the objects.



I hope that helps, please let me know if you have any further questions.

Many Thanks,

Paul
Paul Roberts
iToo Software

eqko

  • Newbie
  • *
  • Posts: 40
Re: Set evenly count via expression (matID or length of segment)
« Reply #2 on: October 16, 2017, 02:03:43 PM »
don't want to make a new thread, so checking in in this one to see if it's possible yet to
have an evenly count set by XSectionLength