But this causes a lot of points and geometries to be constantly redefined and puts a lot of strain on my CPU and makes the program run less smooth.
Is there a way to make it not ping and only change values when it detects changes? Like a component would do?
this command only yields the current document and gets all objects from it. usually you do this once. Its not clear whats causing your lag. please upload your full file or even better isolate the problem abd post it in new gh file.
As a general advice: you can build a definition by doing one hack after another or (which isn’t necessarily harder) code up directly what you want.