Ingnore ! - Not a bug = bad coding by me!
#1
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


Attached Files
.max   Script Bug V2.0.max (Size: 456 KB / Downloads: 112)
  Reply
#2
That’s pretty odd….I’ll take a look.
  Reply
#3
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.
  Reply
#4
(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
  Reply


Forum Jump: