Message 1 of 1
scriptJob which reacts to the change of viewport

Not applicable
02-26-2020
04:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hello everybody,
I wanna make a scriptjob which react to an event like 'ActiveViewChanged'* or a simple click in a different viewports.
is there a solution ?
for example:
def printTest():
print 'view has changed.'
cmds.scriptJob( e= ["ActiveViewChanged","printTest"])
the solution can be found in python or mel, whatever.
by advance thank you
* it doesn't work at all