diskhub
10-11-2006, 12:38 PM
Hi, I am using Maya 8. Due to the fact that maya has removed the support of webpage browser in maya itself, and introducing a plugin for external webpage, I have begun to create my webpage system so that it can let users interact with the maya object via the webpages.
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...
Following is the Javascript function which i will embed them after each click the user has clicked:
function winFocus(){
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?
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...
Following is the Javascript function which i will embed them after each click the user has clicked:
function winFocus(){
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?
