Marcel_
09-06-2010, 04:12 AM
Hi everyone.
I´m having troubles with a mel script I try to write.
after hitting a button on myWindow I want the appropriate camera selected.
But in this case the topShape cam gets always selected whatever button is used (except new Camera Button).
This is the part of the script:
string $myWindow = `window`;
columnLayout;
button - label "new Camera" -command "camera -n newCam001";
string $allCams[] = `ls -et "camera"`;
for($camera in $allCams) {
button -label $camera -command "select $camera";
}
showWindow $myWindow;
Hope anyone can help me.
thanks in advance
Marcel
I´m having troubles with a mel script I try to write.
after hitting a button on myWindow I want the appropriate camera selected.
But in this case the topShape cam gets always selected whatever button is used (except new Camera Button).
This is the part of the script:
string $myWindow = `window`;
columnLayout;
button - label "new Camera" -command "camera -n newCam001";
string $allCams[] = `ls -et "camera"`;
for($camera in $allCams) {
button -label $camera -command "select $camera";
}
showWindow $myWindow;
Hope anyone can help me.
thanks in advance
Marcel