![]() |
Split operator - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: Bugs and Issues (https://forum.tyflow.com/forum-3.html) +--- Thread: Split operator (/thread-3863.html) |
Split operator - betamax - 09-08-2023 We think the Split Operator maybe has a bug, though we're not sure. Reporting it anyway. We're using v.1.022 Create a simple flow using the 'Simple Icon Flow' Preset and add a Split Op. When using default 'Percentage of new particles' mode, the % value doesn't seem to work correctly? Even if the Split Op is set to Continuous it doesn't appear to work. Apologies if this is expected behaviour. Example below shows 50%, but all prts in one event instead of both. Thanks, Max ![]() RE: Split operator - tyFlow - 09-08-2023 It's working correctly...but look at your setup: You are birthing 200 particles over 200 frames, which means 1 particle is being birthed per frame. Your Split operator timing is set to entry, so each frame only a single particle (the new one being birthed) is being affected by the Split operator. You have your split % set to 50%...the split operator works in whole numbers (it's calculating how many particles to send, given the percentage you specify), so: 1 x 50% = 0.5, rounded = 1. So each frame a single particle is being sent - the one being born. That results in all particles being sent. If you adjust your % to 49% you'll see that no particles are sent because: 1 x 49% = 0.49, rounded = 0. So each frame zero particles would be sent. Use "random chance" mode if you want to work in probabilities, rather than percentages. RE: Split operator - betamax - 09-08-2023 Thank you for explaining that, I wish I had the time to investigate these things more before reporting. Very much appreciated as always! |