|
Here’s what I have (within my window )
textField -w 200 -tx $gVar_ccAttr_specFootAttr[0] -ec wv_ccAttr_heelUpDown ccAttr_heelUpDown_txField;
the proc being called is in a .mel file with all the other wv_ procs (around 21 of them, all the same layout as this one;other ones wont work properly either)
global proc wv_ccAttr_heelUpDown() {
global string $gVar_ccAttr_heelUpDown_txField;
global string $gVar_ccAttr_specFootAttr[];
print ("Variable updated; New value applied to $gVar_ccAttr_specFootAttr[0] .");
$gVar_ccAttr_specFootAttr[0] = `textField -query -tx $gVar_ccAttr_heelUpDown_txField`;
print "Update procedure Complete."; }
The odd thing is: when I do change the textfield, the print commands are executed just fine. sourcing the scripts isnt a problem either.
But the variable simply isn’t being updated. -.-*
It works just fine when I run the
$gVar_ccAttr_specFootAttr[0] = `textField -query -tx $gVar_ccAttr_heelUpDown_txField`;
when the window is open. But somehow MEL wont do that if its triggered by the -ec nor the -cc flags of the textfield.
I dont want to break up my pretty UI with a bunch of ugly buttons again to execute the procs. :<
Any help’s appreciated! :)
AutoWalk script out on CreativeCrash!
http://www.creativecrash.com/may...gins/animation/c/autowalk
Jeeves Simple Biped Rig:
http://www.creativecrash.com/maya/downloads/character-rigs/c/jeeves
Dload, test & share! Feedback very much appreciated!
|