Message 1 of 3
-cc & -ec wont write the variable?

Not applicable
01-28-2012
02:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here's what I have (within my window )
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)
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 = `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! 🙂
textField -w 200 -tx $gVar_ccAttr_specFootAttr -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 .");
$gVar_ccAttr_specFootAttr = `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 = `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! 🙂