Itoo Software Forum

Author Topic: Expression doubt  (Read 1103 times)

Paulo Beck

  • Newbie
  • *
  • Posts: 9
Expression doubt
« 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.

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Expression doubt
« Reply #1 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.
Rokas

Paulo Beck

  • Newbie
  • *
  • Posts: 9
Re: Expression doubt
« Reply #2 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
« Last Edit: February 08, 2019, 01:12:48 PM by Paulo Beck »

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Expression doubt
« Reply #3 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. Also this video tutorial is great demonstration of seeing expressions in action.
Rokas