Notifications
Clear all
[Closed] callback REALLY BIG bug?????
Mar 01, 2009 12:31 am
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
Mar 01, 2009 12:31 am
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
Mar 01, 2009 12:31 am
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