Itoo Software Forum

Author Topic: Help with expressions in parametric window creation  (Read 705 times)

UJ4448

  • Newbie
  • *
  • Posts: 3
Help with expressions in parametric window creation
« 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

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Help with expressions in parametric window creation
« Reply #1 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 ";"
Rokas

UJ4448

  • Newbie
  • *
  • Posts: 3
Re: Help with expressions in parametric window creation
« Reply #2 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!