Itoo Software Forum
RailClone => RailClone Pro (*) => Topic started 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
-
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.
-
Sure
I need cylinder on both corners on spline ID3
tnx
-
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.
-
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
-
Is this what You are after:
(https://i.imgur.com/0iN70jt.png)
return if(XSplineMatID==3 | XSplineNextMatID==3,3,1);
-
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
-
Isn't that what You have asked in the first post?
I am a bit lost.
-
Yes, Rokas
Solution is great, I`m talking about adding a new Expression Attribute as ER.
Sorry for misunderstanding ;)