tyFlow Forum
Ingnore ! - Not a bug = bad coding by me! - 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: Ingnore ! - Not a bug = bad coding by me! (/thread-5104.html)



Ingnore ! - Not a bug = bad coding by me! - rjanders0003 - 03-06-2026

G'Day Tyson
I havent seen this before, but since I upgraded from 1.130 to 2.0 I cant have multiple scripts in a flow, there is something weird going on

Sample file attached.  The second script moves the box in the 1st event, instead of moving the correct 2nd event box. The scripts aren't staying isolated to their events.

Rob


RE: Serious Script Issues - tyFlow - 03-06-2026

That’s pretty odd….I’ll take a look.


RE: Serious Script Issues - tyFlow - 03-06-2026

Hi Rob, it's not a Script bug - you're passing the event index to your functions instead of the simulation index. Event index for both particles is 0 (since only 1 particle in each event), but it's interpreting those 0 values as simulation index, which means each script is only affecting the first particle of the sim.


RE: Serious Script Issues - rjanders0003 - 03-06-2026

(03-06-2026, 04:28 PM)tyFlow Wrote: Hi Rob, it's not a Script bug - you're passing the event index to your functions instead of the simulation index. Event index for both particles is 0 (since only 1 particle in each event), but it's interpreting those 0 values as simulation index, which means each script is only affecting the first particle of the sim.

HI - Sorry Mate !!

I will delete the facebook thread!

maybe my brain fell asleep Smile

Rob