Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: HP3623 on July 21, 2016, 07:07:37 PM

Title: Set evenly count via expression (matID or length of segment)
Post by: HP3623 on July 21, 2016, 07:07:37 PM
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?
Title: Re: Set evenly count via expression (matID or length of segment)
Post by: Paul Roberts 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.

(http://i.imgur.com/ncQ05lJ.png)

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

Many Thanks,

Paul
Title: Re: Set evenly count via expression (matID or length of segment)
Post by: eqko 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
Title: Re: Set evenly count via expression (matID or length of segment)
Post by: nubo 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
Title: Re: Set evenly count via expression (matID or length of segment)
Post by: nubo on March 20, 2020, 04:19:38 PM
I've made a workaround (attached) but it's far from perfect.