Using scriptcontext with rhinoscriptsyntax


I’ve been trying to integrate sc.sticky from the scriptcontext library. But have failed to integrate that in my code (attached below), the file also contains a working file using scriptcontext library {named Alicans Script}. The file also contains rhinoscriptsyntax library being used to attract one point to another leaving behind a history trail. Can someone suggest a way to solve the same using sc.sticky or any other dictionary method? I’m requesting for a dictionary method because as seen in the bigger script {Alican’s script} specific elements are being called out. (14.8 KB)