Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Paulo Beck on February 08, 2019, 12:39:24 PM

Title: Expression doubt
Post by: Paulo Beck on February 08, 2019, 12:39:24 PM
Good afternoon,
I can not use the formula to properly position the object.

I thought of using a trigonometric formula as the pink colored barrel increased from squeezing, would automatically push the rest down.
Title: Re: Expression doubt
Post by: Rokas on February 08, 2019, 12:45:35 PM
Hi

expression editor does not solve equations for You. You need to find X Yourself

2*x = 10. it wont calculate x= 5. You need to write it x =10/2.
Title: Re: Expression doubt
Post by: Paulo Beck on February 08, 2019, 01:07:46 PM
How do I solve this problem?

The Element in the green frame is pushed by the element in the turquoise frame as it grows or shrinks. The size of this element is controlled by a Numeric Node, for fine adjustments.

return sin30 = (5 / Input1);

is this right? ... I'm really confused already
Title: Re: Expression doubt
Post by: Rokas on February 08, 2019, 03:07:01 PM
I would recommend getting to know expressions by using them in simpler situations first and seeing what works and what not with trial and error approach.

Good way to start is this documentation page (https://docs.itoosoft.com/railclone/style-editor/operators#Operators-Arithmetic). Also this video tutorial (https://www.itoosoft.com/tutorials/creating-a-christmas-tree-with-railclone-iii) is great demonstration of seeing expressions in action.