Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am investigating how to select the objects on screen and keep them centered on the screen, the closest I found is this.
With the current option I am using I have to deselect the element and select a new one for the scriptjob to act, I would like it to be activated every time I select an object on the screen.
I would like to be able to use the SelectionChanged option, but I don't know how to use it.
import maya.cmds as cmds
jobNum = cmds.scriptJob( ct= ["SomethingSelected","cmds.viewFit()"])
#cmds.scriptJob( kill=jobNum, force=True)Solved! Go to Solution.