Itoo Software Forum

Author Topic: Need help with a simple expression  (Read 579 times)

VanWijnen

  • Newbie
  • *
  • Posts: 40
Need help with a simple expression
« on: May 08, 2020, 09:46:34 AM »
Hi,

I've made a RC object in which there's a group of cars distributed on Markers. I've connected all the car models to a randomize node and I've connected both that randomize node and a null object to a second randomize node. I've exported the presense parameters for both objects and attached a numeric node to both. This allows me to manually control the presence of either a car or an empty parking space.

What I'm looking for is the expression (or a different way?) to have 1 percentage input control both percentages. I think there must be something like Value B = 100-Value A, but I really don't understand how I should put it in the node.

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Need help with a simple expression
« Reply #1 on: May 08, 2020, 10:24:16 AM »
Hi
Your logic seems correct.
Here is an example:

Rokas

VanWijnen

  • Newbie
  • *
  • Posts: 40
Re: Need help with a simple expression
« Reply #2 on: May 08, 2020, 01:39:27 PM »
Hi Rokas, good to hear that my logic is correct ;D. Thanks for the solution!