ManuelM
10-03-2009, 12:43 AM
I hope someone will be able to help me with this. I've been searching the forum and it seems the cmdScrollFieldExecuter is one of the less discussed things around here.
So basically I'm looking for suggestions on how to best solve the following problem:
-Build a custom script editor (I know how to do that via cmdScrollFieldExecuter)
global proc testWin()
{
string $win = "testWin";
if (`window -q -ex $win`)
{
deleteUI $win;
} else{
window -w 300 -h 400 $win;
columnLayout -adjustableColumn true;
string $sfe = `cmdScrollFieldExecuter -h 400 "newScriptEditor"`;
showWindow $win;
}
}
testWin();
-Type some text into the window
-Close the window
Now the next time I run that script, I want the stuff that I've just typed to still be there just like in Maya's default scriptEditor. I've looked through scriptEditorPanel.mel to see how they do it but what exactly is going on there super confusing to me.
I'll be very thankful for any suggestions.
Cheers,
M.
So basically I'm looking for suggestions on how to best solve the following problem:
-Build a custom script editor (I know how to do that via cmdScrollFieldExecuter)
global proc testWin()
{
string $win = "testWin";
if (`window -q -ex $win`)
{
deleteUI $win;
} else{
window -w 300 -h 400 $win;
columnLayout -adjustableColumn true;
string $sfe = `cmdScrollFieldExecuter -h 400 "newScriptEditor"`;
showWindow $win;
}
}
testWin();
-Type some text into the window
-Close the window
Now the next time I run that script, I want the stuff that I've just typed to still be there just like in Maya's default scriptEditor. I've looked through scriptEditorPanel.mel to see how they do it but what exactly is going on there super confusing to me.
I'll be very thankful for any suggestions.
Cheers,
M.
