distract
03-26-2007, 01:04 PM
Hello,
Iīm using trackView.pickTrackDlg() to let the user pick a controller and store the controller for some export later. I need to check if the controller is still valid in the scene.
Like isValidNode() or isValidObj()
The problem is: even if I delete the object containing the controller or a simple floatcontroller in trackview, the controller still exists and is valid. I believe itīs then like some kind of copy in the variable where I stored it from the trackviewPick.
At the moment Iīm checking the refs.dependents of the controller for the string "ReferenceTarget:Animatable" since that makes a difference when the controller is deleted in the scene. But I donīt have to say that this procedure feels like a really dirty way to do it. And I havenīt checked enough for exceptions and errors.
How would you check if a controller of a TrackViewPick is still valid in the scene?
thanks,
Julian
Iīm using trackView.pickTrackDlg() to let the user pick a controller and store the controller for some export later. I need to check if the controller is still valid in the scene.
Like isValidNode() or isValidObj()
The problem is: even if I delete the object containing the controller or a simple floatcontroller in trackview, the controller still exists and is valid. I believe itīs then like some kind of copy in the variable where I stored it from the trackviewPick.
At the moment Iīm checking the refs.dependents of the controller for the string "ReferenceTarget:Animatable" since that makes a difference when the controller is deleted in the scene. But I donīt have to say that this procedure feels like a really dirty way to do it. And I havenīt checked enough for exceptions and errors.
How would you check if a controller of a TrackViewPick is still valid in the scene?
thanks,
Julian
