Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: UJ4448 on January 30, 2020, 11:49:34 AM

Title: Help with expressions in parametric window creation
Post by: UJ4448 on January 30, 2020, 11:49:34 AM
Hello guys,
I have fiddled around with rail clone and I was following the tutorials for parametrizing windows using RC,
I am having trouble with the X evenly part of the tutorial. I am using the selector with it's index linked to an arithmetic function.
it is not behaving the way it shows in the tutorial, and I haven't been able to figure out the problem.

I have attached an image of the problem, also the max file just in case.

could someone please point out what I am missing. thank you in advance
Title: Re: Help with expressions in parametric window creation
Post by: Rokas on January 30, 2020, 01:44:38 PM
Hi and welcome to the forums.

Since the tutorial we updated RailClone a lot.

Expression editor functions has been expanded. And that required some changes how they are written.

Test expression "-1*(Input/4)" in v2 should be written in v3 and v4 like this:
return -1*(Input/4);

Basically all expressions should have "return" in start of "expression" and You should end them with ";"
Title: Re: Help with expressions in parametric window creation
Post by: UJ4448 on January 30, 2020, 03:26:06 PM
thank you :D I have managed to solve that a few minutes ago :D but unfortunately I am facing a different problem now.

in the windows tutorial, we add a slider in the parameters to control the distance. is there a way to automatically divide the mullions equally horizontally just like the vertical ones?

thank you for the swift replies, best regards!