How to stop a camera who is animated by a rotating component in terms of script

Instead of deactivating the rotating movement comp, try setting its rotation rate to 0 to stop it?