Camera location changed event?

Hello,I have a question, is it possible to catch camera events or viewport events from C# script, such as event CameraLocationChanged? I want to let the script be updatable. Thank you.

I changed the category to Rhino Developer.


no there is no event, but you can detect changes by checking the ChangeCounter property of your Viewport. You’ll need to create an own event to monitor this property change. Anyway, I wouldn’t recommend doing any eventhandling in script components, because you cannot guarantee to properly unregistering them once your script component changes its definition( -> recompiling-> loosing handle -> multiple eventhandlers running may causing weirdo behaviour).


Hi @wert6410,

There is no event that you can subscribe to that lets you know when a viewport’s camera or target location changes. Why do you need this? What problem would haveing such an event solve for you?


– Dale