I have an observation about the behavior of onReplicate which I’m struggling to understand. I’ve added an example file to illustrate the problem.
As of 2020.25380:
when a replicator’s input table is updated, the onReplicate method is called
perhaps onReplicate should only be called once
REPRODUCING THE ISSUE
open the python console
type ‘1’ to refresh the table that drives the replicator
observe the message ‘onReplicate…’ which appears twice in the console each
time the ‘1’ key is pressed
WHY THIS IS A PROBLEM
I’d like to put some relatively heavy code into onReplicate, to be called only
when the table is updated. I don’t want this code to run twice.
onreplicate called twice.toe (4.2 KB)