RailClone > RailClone Lite

Can't get gradated color probability to work.

(1/1)

rohan256:
Hi,

I'm using railclone pro 5.3.0. Am trying to follow this tutorial - https://www.itoosoft.com/tutorials/graduated-colour-probabilities?back=duration%3D10%26page%3D2%26tag%3Drailclone

but it is not working. Have attached a screenshot showing what I've used. Where have I gone wrong?

Michal KarmazĂ­n:
Hi,

I'm sorry to hear you're facing these troubles. As mentioned in this "Parse error" tightly related post on our forum: "There's a new Expressions syntax since the RailClone 3. Expressions now require you to add a return property before the expression and a semi-colon (;)at the end of the line."

It should look like the following:

return <theCorrespondingExpression>;

in this case:

return if(Input1<YSplinePosition, 1, 2);

I hope that helps.

Best regards,

rohan256:
Thank you very much. I knew I must have missed some simple point. Will keep this in mind when using expressions.

Navigation

[0] Message Index

Go to full version