Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: VanWijnen on May 08, 2020, 09:46:34 AM

Title: Need help with a simple expression
Post by: VanWijnen 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.
Title: Re: Need help with a simple expression
Post by: Rokas on May 08, 2020, 10:24:16 AM
Hi
Your logic seems correct.
Here is an example:

(https://i.imgur.com/FidLHkT.png)
Title: Re: Need help with a simple expression
Post by: VanWijnen on May 08, 2020, 01:39:27 PM
Hi Rokas, good to hear that my logic is correct ;D. Thanks for the solution!