Infinite mouse looping in perform mode

hey everybody,

i use mouse in to move a circle across the screen.

when the mouse reaches the border of the screen i want the mouse to reappear on the other side of the scree to be able to create infinite movement while in perform mode.

i googled and asked gpt and couldnt find a solution.

i found setCursorPos but couldnt figure out how it works, maybe you guys can help.

Thanks in advance

mousewrap

I think what you’re looking for is the Mouse Out CHOP - TouchDesigner Documentation

I’ve put together a little example that wraps the mouse when it exceeds to the right (works only in fullscreen perform mode).

mouse_wrap.toe (4.0 KB)