Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Remco on October 28, 2020, 02:14:52 PM

Title: Compose Operator : resize one segment
Post by: Remco on October 28, 2020, 02:14:52 PM
Hello,

i am trying to create an element where i can resize the middle part.
i am using the compose Operator and want to resize the middle segment and the the other object move to the right positon.
Title: Re: Compose Operator : resize one segment
Post by: Rokas on October 28, 2020, 02:21:36 PM
You might want to use nested generator instead.
Title: Re: Compose Operator : resize one segment
Post by: Remco on October 28, 2020, 03:12:56 PM
Hi,

i'm lost, everithing i do i end up with the same problem. (even with the nested generator)
a new pointer how to fix this would be appreciated
Title: Re: Compose Operator : resize one segment
Post by: Rokas on October 28, 2020, 03:27:19 PM
Would You attach max so i can take a look ?
Title: Re: Compose Operator : resize one segment
Post by: Remco on October 28, 2020, 03:38:07 PM
Hi,

Here is the file
Title: Re: Compose Operator : resize one segment
Post by: Dragan on October 28, 2020, 08:31:51 PM
Hi
I can`t open File due to Max version (I`m still using Max2018) but here is the file that can help you.
I have exposed some parameters so you can set Size by the Mid_Segment or by the total size of `Composed` Segments. You can also set X Fixed Size if you are plan to use those on some curved spline.
Please, do not hesitate to ask for more  ;)
Best Regards.
Dragan

Title: Re: Compose Operator : resize one segment
Post by: Rokas on October 29, 2020, 07:40:12 AM
Hi

I have modified Your style to include both composed segments (red) and nested generators (green) methods.
(https://i.imgur.com/Tz83ktQ.png)

Hope You can analyze it and learn from attached example.
Feel free to ask any questions You have.
Title: Re: Compose Operator : resize one segment
Post by: Remco on October 29, 2020, 08:37:29 AM
Thanks ,

i've managed to figure out what i was doing wrong.
@ Dragan, ive got you blinds macro and works like a charm!
Title: Re: Compose Operator : resize one segment
Post by: Dragan on October 29, 2020, 08:44:41 AM
 ;)
Thank you for your support.
Glad to help.
Title: Re: Compose Operator : resize one segment
Post by: Remco on October 29, 2020, 09:33:48 AM
1 more question?

is it also possible that when I fill in a dimension it gets bigger to 1 side? I've been working on my railclone skills all week and haven't gotten around to the arithmetic node yet
Title: Re: Compose Operator : resize one segment
Post by: Dragan on October 29, 2020, 09:57:12 AM
One possible solution is to add 3 Transform operators with different Y alignment and connect them to a Selector Operator (1-3).
Title: Re: Compose Operator : resize one segment
Post by: Remco on October 29, 2020, 10:10:15 AM
you are my new favorite person  ;D

works like a charm
Title: Re: Compose Operator : resize one segment
Post by: Dragan on October 29, 2020, 10:13:24 AM
As Rokas said, feel free to ask any questions You have.  ;)
Title: Re: Compose Operator : resize one segment
Post by: Remco on October 29, 2020, 10:18:13 AM
now it works, i've got some moddeling to do  :D