Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Dragan on January 11, 2019, 02:56:42 PM

Title: XSplineMatID - how to include both Corners
Post by: Dragan on January 11, 2019, 02:56:42 PM
Hi Rokas,

How to set expression to return MatID for both Corners (Before and After segment)?

Thank you.

Dragan
Title: Re: XSplineMatID - how to include both Corners
Post by: Rokas on January 11, 2019, 03:13:54 PM
There are a lot of going on in Your scene. I am a bit lost in it.
Maybe there is a matter not only of expression but style/geometry itself.
Could You create a simpler scene with clearer expected final result.
Title: Re: XSplineMatID - how to include both Corners
Post by: Dragan on January 11, 2019, 03:31:20 PM
Sure

I need  cylinder on both corners on spline ID3

tnx

Title: Re: XSplineMatID - how to include both Corners
Post by: Rokas on January 11, 2019, 03:39:40 PM
from Your situation it seems like it has to be just number "3".
and something else has to be done to prevent it's effect in other places.
Title: Re: XSplineMatID - how to include both Corners
Post by: Dragan on January 11, 2019, 07:51:42 PM
Since this is just a part of more complex generator it will be great to have expression Attribute that combine XSplineMatID and XSplineNextMadID so both corner vertex can be included/excluded.
Thank You for reply.

Dragan
Title: Re: XSplineMatID - how to include both Corners
Post by: Rokas on January 14, 2019, 09:47:03 AM
Is this what You are after:
(https://i.imgur.com/0iN70jt.png)


Quote
return if(XSplineMatID==3 | XSplineNextMatID==3,3,1);
Title: Re: XSplineMatID - how to include both Corners
Post by: Dragan on January 14, 2019, 12:14:12 PM
Yes Rokas, thank you, but that solution force me to track all potential ID separation. Imagine complex Spline with 35+ spline IDs.
If I go with logic that certain spline ID will carry some Geometry that  includes/excludes both border corners, expression Attribute that include/exclude those corners will be very helpful (no need for If expression...).
Hope you understand and it make any sense.

Best regards
Dragan
Title: Re: XSplineMatID - how to include both Corners
Post by: Rokas on January 14, 2019, 02:30:58 PM
Isn't that what You have asked in the first post?
I am a bit lost.
Title: Re: XSplineMatID - how to include both Corners
Post by: Dragan on January 14, 2019, 03:31:22 PM
Yes, Rokas

Solution is great, I`m talking about adding a new Expression Attribute as ER.

Sorry for misunderstanding  ;)