Hello Again,
I was working on it over night and found a soulution. Is now working fine how I need. Also I did a UI Window
The only think is that I have to select every object alone. is there a possibilty to let the script run like a loop for every selection?
This is what I did. sorry for the german...
//Mit diesem Script ist es Möglich Oberflaechen Automatiesiert zu Extrudieren fuer LightMaps-------
//select faces
proc extrudepoly()
{
float $edist = textField -q -text edist
;
string $myobject[] = ls -sl
;
print ("the quary name is" + $myobject[0]);
$item = $myobject[0] + ".f[0:999999]";
select -cl;
select -r $item;
//Verteces werden zusammen gelegt
ConvertSelectionToVertices;
polyMergeVertex -d 0.001 -ch 0;
ConvertSelectionToFaces;
//extrude befehl
select -r $item ;
polyExtrudeFacet -ch 1 -kft 1 -ltz $edist;
//Loeschen der Alten Flaechen
InvertSelection;
doDelete;
//Loeschen von History
select -r $myobject[0];
DeleteHistory;
}