Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Here is my issue, I want to create a tool to change a string Value:
Theoric Example: Variable called "Name One"
Click on the tool to update Variable in "Name Two"
MEL Script:
string $Target = "NAME_ONE";
string $window = `window -title "Long Name"
-iconName "Short Name"
-widthHeight 200 55`;
columnLayout -adjustableColumn true;
button -label "Change Name" -command "NewName($Target)";
button -label "Close" -command ("deleteUI -window " + $window);
setParent ..;
showWindow $window;
proc NewName(string $Target){
$Target = "NAME_TWO";
print $Target;
}
print $Target;
During the procedure, it seems to work, nut as soon as I print $Target again, it remains, "Object_One"
Anyone would know a trick?
Solved! Go to Solution.