PDA

View Full Version : callback REALLY BIG bug?????


CerberusC
02-28-2009, 11:31 PM
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.

ZeBoxx2
03-01-2009, 02:13 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
OK
$Free_Camera:Camera01 @ [0.000000,0.000000,0.000000]
OK
OK


No actual callback triggers occurred here after that last OK

CerberusC
03-03-2009, 07:44 PM
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

CGTalk Moderation
03-03-2009, 07:44 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.