Notifications
Clear all

[Closed] callback REALLY BIG bug?????

i have a #viewportChange callback, and while i’m in perspective all is working fine, but when i change to a camera the callback is executing the function all the time, even when i don’t do anything and the viewport is not changed at all.

Help please!

Cheers.

2 Replies

are you sure there’s nothing else running in the background that may cause the callback to be triggered?


callbacks.removescripts id:#test
myCam = freecamera()
viewport.setcamera myCam
callbacks.addscript #viewportChange "print (timestamp())" id:#test
[color=Blue]OK
$Free_Camera:Camera01 @ [0.000000,0.000000,0.000000]
OK
OK
[/color]

No actual callback triggers occurred here after that last OK

I don’t know why but the callback was being mad in my pc, i found another way by tracking the camera position, i’ll try more the viewport callback later

Cheers