Itoo Software Forum

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

HP3623

  • Newbie
  • *
  • Posts: 35
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: 1760
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

  • Jr. Member
  • **
  • Posts: 78
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

nubo

  • Newbie
  • *
  • Posts: 17
Re: Set evenly count via expression (matID or length of segment)
« Reply #3 on: March 20, 2020, 02:36:41 PM »
Still not available in 2020?  :-\
Are you planning to introduce this feature (wiring an expression to Evenly/Default Count Input) in the future?
Maybe it'd be easier to create some Macro which would emulate that kind of behavior?
Best regards
« Last Edit: March 20, 2020, 02:39:11 PM by nubo »

nubo

  • Newbie
  • *
  • Posts: 17
Re: Set evenly count via expression (matID or length of segment)
« Reply #4 on: March 20, 2020, 04:19:38 PM »
I've made a workaround (attached) but it's far from perfect.