Hi, I realised that when i create a URCap with java code inside, that java code it’s only execute one time. The only way that i had the results that i want, was creating a Thread in java (without using the threads that provide the urscrip code), and when i click de play button in de Polyscope, the urscript is blocked but the java code is running. The Thread has an infinite loop inside.
I’dont know how the urscript is block even if i have done a java thread. Why?
If your idea is to execute code during a running script program, you can contribute a daemon process. This can then be called during runtime to execute your functions.
You can look this topic up in the URCap manual or try the MyDaemon example.