ty666
10-27-2005, 10:12 AM
Hello, i'm a noob to mel.
This program is supposed to open a window with a list of the camera in the scene.
But when we click on a button, this is supposed to select the camerashape of the selected view .... and it send me an error : no match name
string $cam[] = `ls -ca`;
string $selection[] = `ls -sl`;
$nb = size($cam);
string $window = `window -title "Coucou"
-iconName "Pouet"
-widthHeight 200 200`;
columnLayout -adjustableColumn true;
for ($i = 0; $i <= $nb-1; $i++) {
button -label $cam[$i]
-command "select -r $cam[$i]";
string $selection[] = `ls -sl`;
}
button -label "Look Through" -command "lookThru $selection";
button -label "Close" -bgc 1 0 0 -command ("deleteUI -window " + $window);
setParent ..;
showWindow $window;
please, where is the problem ? (sorry for my english)
This program is supposed to open a window with a list of the camera in the scene.
But when we click on a button, this is supposed to select the camerashape of the selected view .... and it send me an error : no match name
string $cam[] = `ls -ca`;
string $selection[] = `ls -sl`;
$nb = size($cam);
string $window = `window -title "Coucou"
-iconName "Pouet"
-widthHeight 200 200`;
columnLayout -adjustableColumn true;
for ($i = 0; $i <= $nb-1; $i++) {
button -label $cam[$i]
-command "select -r $cam[$i]";
string $selection[] = `ls -sl`;
}
button -label "Look Through" -command "lookThru $selection";
button -label "Close" -bgc 1 0 0 -command ("deleteUI -window " + $window);
setParent ..;
showWindow $window;
please, where is the problem ? (sorry for my english)
