Currently I am writing a HTML UI for my rig so that my friends and I can animate our characters easily by selecting the hotspot areas on the images
However i had been trying to do a setfocus to bring the focus by to the mayawindow so that animators can adjusting the position or the values of the selected joints.
I tried and embed the following script inside java script:
setFocus `getPanel -withFocus`
However though the mayawindow seems to be active and selected, I still can't press those hotkey like W,E,R to move, scale and rotate them...
MEL_Execute('setFocus \`'+'getPanel -withFocus'+'\`; refresh -f -cv;'
However, it still does not work on Maya 8. However, it works perfectly in maya 7 or earlier. Any experienced guy can enlighten me?