RailClone > RailClone Pro (*)

Material ID Limit

(1/2) > >>

arch3d:
Hi, all

"To set a generator to use only spline segments with a designated material ID
With the L1S generator selected, go to Properties>Limits and turn on Material Id.
Designate a Material ID Value. From the drop down list identify whether a segment is used by being either equal, lesser, greater, on not equal to this value."

Is it possible to get "from--->to" value (e.g. 3,4,5....20)

Exported parameter doesnt work for me

Thanks

Paul Roberts:
Hi,

Thanks for contacting us. At the moment RailClone's Generator Limit by material ID feature doesn't work with a range or list of IDs. This is already on our wishlist to implement.

Until then you can get around this limitation using Conditional operators and turning on/off segments based on IDs. To create a From --> To condition you would wire two together like this:



In this example I've exported the range start and end values so that they're easy to edit from the modify panel. I've attached a sample file, if you have any questions about this please just let me know.

Many thanks!

Paul

arch3d:
Thank you very much

I got second problem. I know you can help
I got spline with four IDs
I would like to control height of the element using param  1 for ID 1 and 2 for ID 2 ...x for IDx


Please find attached screen

Paul Roberts:
No problem at all.

You should be able to do this using and expression and some nested If statements. First wire the heights in order to a new Arithmetic node, like this:



Then select the Arithmetic node and change the mode to expression. To create an if statement you use this syntax

if(x=y,value returned if true, value returned if false)

So to test for a material ID, you would use...

(XSplineMatID=1,Input1,0)

By nesting many if statements together you can create as many possible outcomes as you need, for example, here's a group of nested if statements to detect 6 materials IDs and return the values wired to the corresponding inputs:

if(XSplineMatID=1,Input1,
if(XSplineMatID=2,Input2,
if(XSplineMatID=3,Input3,
if(XSplineMatID=4,Input4,
if(XSplineMatID=5,Input5,
if(XSplineMatID=6,Input6,0
))))))



I've attached a sample file that combines this with the limiting nodes shown in the other post. I hope that helps.

Many thanks!

Paul

arch3d:
Thanks,
Ill check it. I was trying to solve it using 2d arrays and empty object with fixed height as a controller. But your way is much more simple:)

Navigation

[0] Message Index

[#] Next page

Go to full version